Code

Remove usr/share/info/dir, which GNU install-info generates. Closes: #545974
[pkg-enblend.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for enblend-enfuse
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 CFLAGS = -Wall -g
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17         CFLAGS += -O0
18 else
19         CFLAGS += -O2
20 endif
22 include /usr/share/dpatch/dpatch.make
24 get-orig-source:
25         dh_testdir
26         dh_testroot
27         chmod 755 debian/bin/uscan_repack.sh
28         uscan --verbose --force-download --rename
30 config.status: configure $(DPATCH_STAMPFN)
31         dh_testdir
32         CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
33                 --build=$(DEB_BUILD_GNU_TYPE) \
34                 --prefix=/usr --mandir=\$${prefix}/share/man
36 build: build-stamp
38 build-stamp:  config.status
39         dh_testdir
40         
41         $(MAKE)
42         
43         touch build-stamp
45 clean: unpatch
46         dh_testdir
47         dh_testroot
48         rm -f build-stamp
49         
50         [ ! -f Makefile ] || $(MAKE) distclean
51         rm -f doc/*.info
52         
53         dh_clean
55 install: build
56         dh_testdir
57         dh_testroot
58         dh_clean -k
59         dh_installdirs
60         
61         $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
62         rm -f $(CURDIR)/debian/tmp/usr/share/info/dir
64 binary-indep:
65         # nothing to do here
67 binary-arch: build install
68         dh_testdir
69         dh_testroot
70         dh_installchangelogs ChangeLog
71         dh_installdocs NEWS TODO AUTHORS
72         dh_installexamples
73         dh_install --sourcedir=debian/tmp --fail-missing
74         dh_installman
75         dh_installinfo -penblend doc/enblend.info
76         dh_installinfo -penfuse doc/enfuse*.info
77         dh_link
78         dh_strip
79         dh_compress
80         dh_fixperms
81         dh_installdeb
82         dh_shlibdeps
83         dh_gencontrol
84         dh_md5sums
85         dh_builddeb
87 binary: binary-indep binary-arch
88 .PHONY: get-orig-source build clean binary-indep binary-arch binary install