]> git.decadent.org.uk Git - ap-utils.git/blob - debian/rules
Pass correct platform options to configure
[ap-utils.git] / debian / rules
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3 export DH_COMPAT=3
4
5 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7
8 confflags += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE)
9
10 build: build-stamp
11 build-stamp:
12         dh_testdir
13         cp -f /usr/share/misc/config.sub config.sub
14         cp -f /usr/share/misc/config.guess config.guess
15         ./configure $(confflags) --prefix=/usr \
16                     --mandir=\$${prefix}/share/man \
17                     --infodir=\$${prefix}/share/info
18         $(MAKE)
19         touch build-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp config.sub config.guess
25         -$(MAKE) distclean
26         #Really clean the po directory
27         dh_clean po/*.gmo
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k
33 #       dh_installdirs
34         $(MAKE) DESTDIR=$(CURDIR)/debian/ap-utils install
35
36 binary-indep: build install
37
38 binary-arch: build install
39         dh_testdir
40         dh_testroot
41         dh_installchangelogs ChangeLog
42         dh_installdocs
43 #       dh_installexamples
44 #       dh_install
45 #       dh_installmenu
46 #       dh_installdebconf       
47 #       dh_installinit
48 #       dh_installcron
49 #       dh_installinfo
50 #       dh_undocumented
51         dh_installman
52         dh_link
53         dh_strip
54         dh_compress
55         dh_fixperms
56 #       dh_makeshlibs
57         dh_installdeb
58         dh_shlibdeps
59         dh_gencontrol
60         dh_md5sums
61         dh_builddeb
62
63 binary: binary-indep binary-arch
64 .PHONY: build clean binary-indep binary-arch binary install