File: rules

package info (click to toggle)
garli 2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,884 kB
  • sloc: cpp: 34,419; sh: 11,026; makefile: 99
file content (29 lines) | stat: -rwxr-xr-x 743 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
25
26
27
28
29
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_configure:
	# First build MPI version of Garli
	dh_auto_configure -- --with-ncl=/usr --enable-mpi
	dh_auto_build
	mkdir -p debian/mpi
	mv src/Garli debian/mpi/Garli-mpi
	make distclean
	# Now build single processor binary
	dh_auto_configure -- --with-ncl=/usr

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cp -a tests tests.bak
	# get (mostly!) reproducible test results and avoid failures as described in bug #907905
	find tests -name "*.conf" -exec sed -i~ 's/randseed *= *-1/randseed = 1/' \{\} \;
	dh_auto_test
	# restore original test dir
	rm -rf tests
	mv tests.bak tests
endif