File: rules

package info (click to toggle)
catcodec 1.0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 188 kB
  • sloc: cpp: 527; makefile: 51; sh: 43
file content (28 lines) | stat: -rwxr-xr-x 879 bytes parent folder | download
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
27
28
#!/usr/bin/make -f
# -*- makefile -*-

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

ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
export VERBOSE=1
endif

# 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