File: rules

package info (click to toggle)
brial 0.8.5-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,968 kB
  • sloc: cpp: 227,637; ansic: 54,226; python: 6,608; sh: 887; makefile: 766
file content (28 lines) | stat: -rwxr-xr-x 797 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
#!/usr/bin/make -f

# DH_VERBOSE=1
NUMJOBS=$(filter parallel=%,$(DEB_BUILD_OPTIONS))
SCONSPARFLAGS=$(subst parallel=,-j, $(NUMJOBS))

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --parallel --with autoreconf --with python2

override_dh_strip:
	dh_strip -plibbrial0 \
	  --dbg-package=libbrial0-dbg
	dh_strip -plibbrial-groebner0 \
	  --dbg-package=libbrial-groebner0-dbg
	dh_strip -a -Nlibbrial0 \
	  -Nlibbrial-groebner0

# Disable test suite for now because running scons modiefies files
# that are going to be installed. 
#override_dh_auto_test:
#	scons $(SCONSPARFLAGS) testsuite/unittests
#ifeq ($(DEB_HOST_ARCH_OS),hurd) # problems with rpath on hurd
#	LD_LIBRARY_PATH=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) testsuite/unittests
#else
#	testsuite/unittests
#endif