File: rules

package info (click to toggle)
crac 2.5.2+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,952 kB
  • sloc: cpp: 41,838; sh: 391; makefile: 369
file content (24 lines) | stat: -rwxr-xr-x 839 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
23
24
#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Sequence of tests is important so parallel execution is no option
	dh_auto_test --no-parallel
endif

override_dh_installexamples:
	mkdir debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples
	rsync -a --exclude=Makefile* test_f debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples
	sed -i 's+$${abs_top_builddir:-\.\./\.\.}/src/crac+crac+' `grep -wRl crac debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/*`
	sed -i 's+$$abs_top_builddir/src/crac-index+crac-index+' `grep -wRl crac-index debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/*`