Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Set to enable verbose output from debhelper
4 #export DH_VERBOSE=1
5
6 # Export standard build flags like CPFLAGS, LDFLAGS, etc.
7 # Note that we're using "-include" to make this backport-friendly.
8 # The buildflags.mk script was introduced along with dpkg-dev 1.16.1.
9 DPKG_EXPORT_BUILDFLAGS=1
10 -include /usr/share/dpkg/buildflags.mk
11
12 # Set up the environment for cross-builds to work correctly.
13 # See: https://wiki.debian.org/CrossBuildPackagingGuidelines
14 # The buildtools.mk script was introduced along with dpkg-dev 1.19.0.
15 DPKG_EXPORT_BUILDTOOLS=1
16 -include /usr/share/dpkg/buildtools.mk
17
18 # Enable all hardening-related compiler options
19 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
20
21 %:
22 dh $@
23
24 override_dh_installdocs:
25 dh_installdocs Acknowleds README.md
26
27 # This takes the place of an upstream install process
28 override_dh_auto_install:
29 install compress debian/ncompress/usr/bin
30 ln -s compress debian/ncompress/usr/bin/uncompress.real
31 install -m 644 compress.1 debian/ncompress/usr/share/man/man1
32 ln -s compress.1 debian/ncompress/usr/share/man/man1/uncompress.real.1
33
34 # This takes the place of an upstream build process
35 override_dh_auto_build:
36 $(MAKE) compress
37
38 # This takes the place of an upstream clean process
39 override_dh_auto_clean:
40 $(MAKE) cleanup
41 rm -f Makefile
42
43 override_dh_auto_test:
44 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
45 $(MAKE) check # upstream tests added with v4.2.4.5
46 sh debian/smoketest # portions of the Debian autopkgtest suite
47 endif