File: rules

package info (click to toggle)
sacc 1.07-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 156 kB
  • sloc: ansic: 2,156; makefile: 85
file content (22 lines) | stat: -rwxr-xr-x 565 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	# Keep the existing CFLAGS and LDFLAGS if they are set.
	# Upstream doesn't like this because ?= is GNU Make syntax.
	sed -i 's/^\(CFLAGS \)=/\1?=/ ; s/^\(LDFLAGS \)=/\1?=/' config.mk
	# The Makefile supports CFLAGS, but not CPPFLAGS, let's append them.
	CFLAGS="$$CFLAGS $$CPPFLAGS" dh_auto_build

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr

override_dh_auto_clean:
	dh_auto_clean

	# As of v1.00 there is no distclean target.
	rm -fv config.h