File: rules

package info (click to toggle)
capnproto 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,388 kB
  • sloc: cpp: 22,665; sh: 4,660; ansic: 720; makefile: 551; xml: 275
file content (33 lines) | stat: -rwxr-xr-x 718 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
#!/usr/bin/make -f

#
# Force a release build & works around a g++ compiler bug by happy coincidence
#
export DEB_CXXFLAGS_MAINT_APPEND = -DNDEBUG
export DEB_LDFLAGS_MAINT_APPEND = -lpthread

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

export DH_OPTIONS

%:
	dh $@

override_dh_auto_build:
	xsltproc --nonet \
		--param make.year.ranges 1 \
		--param make.single.year.ranges 1 \
		--param man.charmap.use.subset 0 \
		-o debian/ \
	http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
		debian/capnp.1.xml
	dh_auto_build

override_dh_auto_clean:
	rm -f debian/capnp.1
	dh_auto_clean

override_dh_auto_test:
	VERBOSE=1 dh_auto_test