File: rules

package info (click to toggle)
tao-config 0.0%2Bgit20200604.84a7383-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,168 kB
  • sloc: cpp: 5,970; makefile: 37; ansic: 3
file content (26 lines) | stat: -rwxr-xr-x 552 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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

# for hardening you might like to uncomment this:
# export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Move schema binary out directory as it relies on tests/
	mv build/src/test/config/schema .
	build/src/test/config/tests
	build/src/test/config/errors
	./schema
endif

override_dh_clean:
	dh_clean
	# Remove schema binary we moved out in override_dh_auto_test
	rm -f schema