b6c0f57ff2c644f189049b44fa20d5dc56f7b5df
[lxde/lxpanel.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
13 # These are used for cross-compiling and for saving the configure script
14 # from having to guess our platform (since we know it already)
15 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
18
19 config.status: configure
20         dh_testdir
21         # Add here commands to configure the package.
22 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
23         cp -f /usr/share/misc/config.sub config.sub
24 endif
25 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
26         cp -f /usr/share/misc/config.guess config.guess
27 endif
28         ./configure \
29         --host=$(DEB_HOST_GNU_TYPE) \
30         --build=$(DEB_BUILD_GNU_TYPE) \
31         --prefix=/usr \
32         --mandir=\$${prefix}/share/man \
33         --infodir=\$${prefix}/share/info \
34         CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
35
36
37 build: build-stamp
38
39 build-stamp:  config.status
40         dh_testdir
41
42         # Add here commands to compile the package.
43         $(MAKE)
44         #docbook-to-man debian/lxpanel.sgml > lxpanel.1
45
46         touch $@
47
48 clean:
49         dh_testdir
50         dh_testroot
51         rm -f build-stamp 
52
53         # Add here commands to clean up after the build process.
54         [ ! -f Makefile ] || $(MAKE) distclean
55         rm -f config.sub config.guess
56
57         dh_clean 
58
59 install: build
60         dh_testdir
61         dh_testroot
62         dh_clean -k 
63         dh_installdirs
64
65         # Add here commands to install the package into debian/lxpanel.
66         $(MAKE) DESTDIR=$(CURDIR)/debian/lxpanel install
67
68
69 # Build architecture-independent files here.
70 binary-indep: build install
71 # We have nothing to do by default.
72
73 # Build architecture-dependent files here.
74 binary-arch: build install
75         dh_testdir
76         dh_testroot
77         dh_installchangelogs ChangeLog
78         dh_installdocs
79         dh_installexamples
80 #       dh_install
81 #       dh_installmenu
82 #       dh_installdebconf       
83 #       dh_installlogrotate
84 #       dh_installemacsen
85 #       dh_installpam
86 #       dh_installmime
87 #       dh_python
88 #       dh_installinit
89 #       dh_installcron
90 #       dh_installinfo
91         dh_installman
92         dh_link
93         dh_strip
94         dh_compress
95         dh_fixperms
96 #       dh_perl
97 #       dh_makeshlibs
98         dh_installdeb
99         dh_shlibdeps
100         dh_gencontrol
101         dh_md5sums
102         dh_builddeb
103
104 binary: binary-indep binary-arch
105 .PHONY: build clean binary-indep binary-arch binary install