File: rules

package info (click to toggle)
docopt.cpp 0.6.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: cpp: 1,502; python: 57; sh: 20; makefile: 13
file content (21 lines) | stat: -rwxr-xr-x 457 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
	dh_auto_configure -- -DWITH_TESTS=ON -DBUILD_SHARED_LIBS=ON
else
	dh_auto_configure -- -DWITH_TESTS=OFF -DBUILD_SHARED_LIBS=ON
endif

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
	./*/run_tests
endif