File: rules

package info (click to toggle)
pspp 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 41,552 kB
  • sloc: ansic: 233,156; xml: 12,354; sh: 4,850; python: 1,928; perl: 1,000; makefile: 122
file content (36 lines) | stat: -rwxr-xr-x 889 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
31
32
33
34
35
36
#!/usr/bin/make -f

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

# Parallel regression run
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
PARALLEL = -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
else
PARALLEL =
endif

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	@echo 'blhc: ignore-line-regexp: .*q2c'
	dh_auto_build -- all html pdf

override_dh_auto_test:
	# Post the testsuite results to the build log on failures
	dh_auto_test -- TESTSUITEFLAGS='$(PARALLEL)' || { cat $(CURDIR)/tests/testsuite.log; false; }

override_dh_auto_configure:
	dh_auto_configure -- --disable-rpath $(CONFIGUREFLAGS)

override_dh_install:
	# Delete the .la files
	find debian -name '*.la' -delete
	find debian/pspp/usr/share -empty -type d -delete
	dh_install

override_dh_compress:
	dh_compress --exclude=.pdf --exclude=.xml