Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Use debhelper default for all targets (but some are overridden below).
5 %:
6 dh $@
7
8 ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
9 export VERBOSE=1
10 endif
11
12 # Enable all hardening options, since we potentially handle untrusted
13 # data. Debhelper takes care of calling dpkg-buildflags and exporting
14 # all the build flags in the environment automatically.
15 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
16
17 # Upstream uses make mrproper, which dh_auto_clean doesn't recognize.
18 override_dh_auto_clean:
19 $(MAKE) mrproper
20 # Remove our config file generated in the configure step
21 rm -f Makefile.local
22
23 override_dh_auto_configure:
24 # Default is to install to /usr/local
25 echo "prefix=/usr" >> Makefile.local
26 # These will be installed by debhelper
27 echo "DO_NOT_INSTALL_CHANGELOG=1" >> Makefile.local
28 echo "DO_NOT_INSTALL_LICENSE=1" >> Makefile.local