File: rules

package info (click to toggle)
dpp 10.1.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 17,972 kB
  • sloc: cpp: 48,486; ansic: 7,991; php: 1,293; python: 80; sh: 60; makefile: 15
file content (24 lines) | stat: -rwxr-xr-x 574 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DDPP_USE_EXTERNAL_JSON=ON -DRUN_LDCONFIG=OFF -DDPP_BUILD_TEST=OFF

# Don't build docs if nodoc build is run
execute_after_dh_auto_build:
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
	doxygen
endif

execute_after_dh_auto_clean:
	rm -rf docs
	rm -f mlspp/include/namespace.h

override_dh_auto_test:
# Skip tests; almost all require network, and many require a Discord bot token.