File: rules

package info (click to toggle)
kvazaar 2.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,968 kB
  • sloc: ansic: 35,253; sh: 4,870; python: 362; makefile: 324; cpp: 166; awk: 10
file content (42 lines) | stat: -rwxr-xr-x 918 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
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

RUN_TESTS := yes
ifeq (nocheck,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
  $(warning Disabling checks due DEB_BUILD_OPTIONS)
  RUN_TESTS := no
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-cryptopp

override_dh_auto_build-arch:
	dh_auto_build

override_dh_auto_build-indep:
	doxygen docs.doxy

override_dh_auto_install-arch:
	dh_auto_install

override_dh_auto_install-indep:
	mkdir -p debian/tmp/usr/share/doc/kvazaar/
	cp -r doxygen_html debian/tmp/usr/share/doc/kvazaar/html

override_dh_auto_test-arch:
ifeq (yes,$(RUN_TESTS))
	dh_auto_test
else
	echo 'nocheck found in DEB_BUILD_OPTIONS or unsupported architecture'
endif

override_dh_auto_test-indep:
	# No tests for architecture independent packages.

override_dh_installdocs:
	rm -f debian/tmp/usr/share/doc/kvazaar/LICENSE*
	dh_installdocs