Adding debian version 0.3.2.1+svn20080509-2.
[debian/lxde-common.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 include /usr/share/dpatch/dpatch.make
13
14 # These are used for cross-compiling and for saving the configure script
15 # from having to guess our platform (since we know it already)
16 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18
19
20 config.status: configure patch-stamp
21         dh_testdir
22         # Add here commands to configure the package.
23 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
24         cp -f /usr/share/misc/config.sub config.sub
25 endif
26 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
27         cp -f /usr/share/misc/config.guess config.guess
28 endif
29         ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
30
31
32 build: build-stamp
33
34 build-stamp:  config.status
35         dh_testdir
36
37         # Add here commands to compile the package.
38         $(MAKE)
39         #docbook-to-man debian/lxde-common.sgml > lxde-common.1
40
41         touch $@
42
43 clean: unpatch
44         dh_testdir
45         dh_testroot
46         rm -f build-stamp 
47
48         # Add here commands to clean up after the build process.
49         [ ! -f Makefile ] || $(MAKE) distclean
50         rm -f config.sub config.guess
51
52         dh_clean 
53
54 install: build
55         dh_testdir
56         dh_testroot
57         dh_clean -k 
58         dh_installdirs
59
60         # Add here commands to install the package into debian/lxde-common.
61         $(MAKE) DESTDIR=$(CURDIR)/debian/lxde-common install
62
63
64 # Build architecture-independent files here.
65 binary-indep: build install
66         dh_testdir
67         dh_testroot
68         dh_installchangelogs -Nlxde-settings-daemon
69         dh_installdocs -Nlxde-settings-daemon
70         dh_movefiles --sourcedir=debian/lxde-common
71         dh_installman -Nlxde-settings-daemon 
72         dh_link usr/share/doc/lxde-common usr/share/doc/lxde
73         dh_strip -Nlxde-settings-daemon
74         dh_compress -Nlxde-settings-daemon
75         dh_fixperms -Nlxde-settings-daemon
76         dh_installdeb -Nlxde-settings-daemon
77         dh_gencontrol -Nlxde-settings-daemon
78         dh_md5sums -Nlxde-settings-daemon
79         dh_builddeb -Nlxde-settings-daemon
80
81 # Build architecture-dependent files here.
82 binary-arch: build install
83         dh_testdir
84         dh_testroot
85         dh_installchangelogs -plxde-settings-daemon
86         dh_installdocs -plxde-settings-daemon
87 #       dh_installexamples
88 #       dh_install
89 #       dh_installmenu
90 #       dh_installdebconf       
91 #       dh_installlogrotate
92 #       dh_installemacsen
93 #       dh_installpam
94 #       dh_installmime
95 #       dh_python
96 #       dh_installinit
97 #       dh_installcron
98 #       dh_installinfo
99         dh_installman -plxde-settings-daemon 
100         dh_link usr/share/doc/lxde-common usr/share/doc/lxde \
101                 usr/share/doc/lxde-common usr/share/doc/lxde-settings-daemon
102         dh_strip -plxde-settings-daemon
103         dh_compress -plxde-settings-daemon
104         dh_fixperms -plxde-settings-daemon
105 #       dh_perl
106 #       dh_makeshlibs
107         dh_installdeb -plxde-settings-daemon
108         dh_shlibdeps -L lxde-settings-daemon -l debian/lxde-settings-daemon/usr/bin
109         dh_gencontrol -plxde-settings-daemon
110         dh_md5sums -plxde-settings-daemon
111         dh_builddeb -plxde-settings-daemon
112
113 binary: binary-indep binary-arch
114 .PHONY: build clean binary-indep binary-arch binary install