File: rules

package info (click to toggle)
ceccomp 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,604 kB
  • sloc: ansic: 6,470; python: 1,039; makefile: 248; sh: 145
file content (19 lines) | stat: -rwxr-xr-x 681 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
#!/usr/bin/make -f
# The Makefile does not accept CPPFLAGS, so append it to CFLAGS
export CFLAGS := $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CFLAGS)
export CFLAGS += $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CPPFLAGS)
export LDFLAGS := $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get LDFLAGS)

%:
	NO_COLOR=1 dh $@

override_dh_auto_configure:
	dh_auto_configure -- --zshfpath=\$${prefix}/share/zsh/vendor-completions \
		--packager="$(shell . /etc/os-release && echo $$NAME | cut -d' ' -f1)"

override_dh_auto_test:
	dh_auto_test --
	python3 -m pytest test

override_dh_compress:
	dh_compress -X.webp --