File: rules

package info (click to toggle)
prometheus-cpp 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 792 kB
  • sloc: cpp: 3,596; sh: 37; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 458 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS=hardening=+all reproducible=+all future=+lfs

CPPFLAGS+=-DNDEBUG

%:
	dh $@ --buildsystem=cmake+ninja

override_dh_auto_configure:
	dh_auto_configure -- \
	-DBUILD_SHARED_LIBS=ON \
	-DUSE_THIRDPARTY_LIBRARIES=OFF

override_dh_auto_build:
	dh_auto_build
	cd doc && doxygen && rm -f html/*.md5
	find doc/html -name '*.html' -type f | xargs sed -i -e "s,$(CURDIR),,g"