File: rules

package info (click to toggle)
catcodec 1.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 188 kB
  • sloc: cpp: 527; makefile: 49; sh: 43
file content (26 lines) | stat: -rwxr-xr-x 829 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f
# -*- makefile -*-

# Use debhelper default for all targets (but some are overridden below).
%:
	dh  $@

export VERBOSE=1

# Enable all hardening options, since we potentially handle untrusted
# data. Debhelper takes care of calling dpkg-buildflags and exporting
# all the build flags in the environment automatically.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Upstream uses make mrproper, which dh_auto_clean doesn't recognize.
override_dh_auto_clean:
	$(MAKE) mrproper
	# Remove our config file generated in the configure step
	rm -f Makefile.local

override_dh_auto_configure:
	# Default is to install to /usr/local
	echo "prefix=/usr" >> Makefile.local
	# These will be installed by debhelper
	echo "DO_NOT_INSTALL_CHANGELOG=1" >> Makefile.local
	echo "DO_NOT_INSTALL_LICENSE=1" >> Makefile.local