File: rules

package info (click to toggle)
xtermcontrol 3.8-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 852 kB
  • sloc: ansic: 5,230; sh: 4,309; makefile: 47
file content (22 lines) | stat: -rwxr-xr-x 656 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

PACKAGE_YEAR = $(shell date --utc --date=@$(SOURCE_DATE_EPOCH) '+%Y')
PACKAGE_DATE = $(shell LC_ALL=C date --utc --date=@$(SOURCE_DATE_EPOCH) +'%B %d, %Y')

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- PACKAGE_YEAR="$(PACKAGE_YEAR)" PACKAGE_DATE="$(PACKAGE_DATE)"

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	xvfb-run xterm -e '( dh_auto_test ; echo $$? ) | tee debian/xterm_dh_auto_test.log'
	cat debian/xterm_dh_auto_test.log
	sh -c 'exit $$(tail -1 debian/xterm_dh_auto_test.log)'
endif