Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 DPKG_EXPORT_BUILDFLAGS = 1
5 include /usr/share/dpkg/buildflags.mk
6
7 export DH_VERBOSE=1
8
9 # This has to be exported to make some magic below work.
10 export DH_OPTIONS
11
12 %:
13 dh $@ --no-parallel
14
15 # Add --with-old-names and --without-old-links, so that
16 # the dateutils get installed with the "date" prefix
17 # instead of the new short "d" prefix.
18 # The tool "dgrep" is already provided by debian-goodies.
19 # See bug #846074
20 # no need for this anylonger, upstream renamed the binaries
21 # override_dh_auto_configure:
22 # dh_auto_configure -- --program-prefix='dateutils.' --with-old-names --without-old-links
23
24 override_dh_auto_install:
25 dh_auto_install
26 find
27 # remove some old stuff
28 rm $(CURDIR)/debian/dateutils/usr/share/doc/dateutils/LICENSE
29 rm $(CURDIR)/debian/dateutils/usr/bin/dadd
30 rm $(CURDIR)/debian/dateutils/usr/bin/dconv
31 rm $(CURDIR)/debian/dateutils/usr/bin/ddiff
32 rm $(CURDIR)/debian/dateutils/usr/bin/dgrep
33 rm $(CURDIR)/debian/dateutils/usr/bin/dround
34 rm $(CURDIR)/debian/dateutils/usr/bin/dseq
35 rm $(CURDIR)/debian/dateutils/usr/bin/dsort
36 rm $(CURDIR)/debian/dateutils/usr/bin/dtest
37 rm $(CURDIR)/debian/dateutils/usr/bin/dzone
38
39 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dadd.1
40 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dconv.1
41 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/ddiff.1
42 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dgrep.1
43 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dround.1
44 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dseq.1
45 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dsort.1
46 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dtest.1
47 rm $(CURDIR)/debian/dateutils/usr/share/man/man1/dzone.1
48
49 override_dh_auto_test:
50 LC_ALL=C dh_auto_test
51
52 override_dh_auto_clean:
53 [ -f Makefile ] && dh_auto_clean || true