Code

b6c0470ba1e1aeed34a98e0a74a834798f22538d
[pkg-pfstmo.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for pfstmo
3 #
4 # Written by Sebastian Harl <sh@tokkee.org>
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 config.status: configure
15         dh_testdir
16         
17         for file in config.guess config.sub; do \
18                 if [ ! -e $$file.upstream ]; then \
19                         mv $$file $$file.upstream; \
20                         ln -s /usr/share/misc/$$file .; \
21                 fi \
22         done
23         
24         ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
25                 --prefix=/usr --mandir=\$${prefix}/share/man \
26                 --infodir=\$${prefix}/share/info
29 build: build-stamp
31 build-stamp:  config.status
32         dh_testdir
33         
34         $(MAKE)
35         
36         touch build-stamp
38 clean:
39         dh_testdir
40         dh_testroot
41         rm -f build-stamp 
42         
43         -$(MAKE) distclean
44         for file in config.guess config.sub; do \
45                 if [ -e $$file.upstream ]; then \
46                         rm -f $$file; \
47                         mv $$file.upstream $$file; \
48                 fi \
49         done
50         
51         dh_clean 
53 install: build
54         dh_testdir
55         dh_testroot
56         dh_clean -k 
57         dh_installdirs
58         
59         $(MAKE) DESTDIR=$(CURDIR)/debian/pfstmo install
61 binary-indep: build install
62         # nothing to do here
64 binary-arch: build install
65         dh_testdir
66         dh_testroot
67         dh_installchangelogs ChangeLog
68         dh_installdocs AUTHORS README TODO
69         dh_installexamples
70         dh_installman
71         dh_link
72         dh_strip
73         dh_compress
74         dh_fixperms
75         dh_installdeb
76         dh_shlibdeps
77         dh_gencontrol
78         dh_md5sums
79         dh_builddeb
81 binary: binary-indep binary-arch
82 .PHONY: build clean binary-indep binary-arch binary install