File: rules

package info (click to toggle)
afio 2.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 768 kB
  • sloc: ansic: 4,972; sh: 139; makefile: 75; awk: 19
file content (30 lines) | stat: -rwxr-xr-x 609 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
29
30
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_build:
	# save original (due to diff)
	cp exten_default.h exten_default_orig.h
	dh_auto_build

override_dh_clean:
	# restore original exten_default.h
	if test -e exten_default_orig.h; then \
	    mv exten_default_orig.h exten_default.h; \
	fi
	[ ! -f Makefile ] || $(MAKE) clean
	dh_clean

override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	LANG=C;$(MAKE) regtest
endif

override_dh_auto_install:
	# Disabled. See debian/install

override_dh_installchangelogs:
	dh_installchangelogs HISTORY

%:
	dh $@