bc8c64f63bdcfa94aa3c774571d9629f89a19607
1 #!/usr/bin/make -f
2 # debian/rules for pfstmo
3 #
4 # Written by Sebastian Harl <tokkee@debian.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
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
24 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
25 --prefix=/usr --mandir=\$${prefix}/share/man \
26 --infodir=\$${prefix}/share/info
28 build: build-stamp
30 build-stamp: config.status
31 dh_testdir
33 $(MAKE)
35 touch build-stamp
37 clean:
38 dh_testdir
39 dh_testroot
40 rm -f build-stamp
42 [ ! -f Makefile ] || $(MAKE) distclean
43 for file in config.guess config.sub; do \
44 if [ -e $$file.upstream ]; then \
45 rm -f $$file; \
46 mv $$file.upstream $$file; \
47 fi \
48 done
50 dh_clean
52 install: build
53 dh_testdir
54 dh_testroot
55 dh_clean -k
56 dh_installdirs
58 $(MAKE) DESTDIR=$(CURDIR)/debian/pfstmo install
60 binary-indep: build install
61 # nothing to do here
63 binary-arch: build install
64 dh_testdir
65 dh_testroot
66 dh_installchangelogs ChangeLog
67 dh_installdocs AUTHORS README TODO
68 dh_installexamples
69 dh_installman
70 dh_link
71 dh_strip
72 dh_compress
73 dh_fixperms
74 dh_installdeb
75 dh_shlibdeps
76 dh_gencontrol
77 dh_md5sums
78 dh_builddeb
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary install