File: rules

package info (click to toggle)
cppcheck 1.54-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,560 kB
  • sloc: cpp: 91,340; php: 11,730; xml: 519; python: 474; makefile: 343; ansic: 130; sh: 49
file content (44 lines) | stat: -rwxr-xr-x 1,442 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

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

CPPFLAGS=	$(shell dpkg-buildflags --get CPPFLAGS)
CXXFLAGS=	$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS=	$(shell dpkg-buildflags --get LDFLAGS)

include /usr/share/hardening-includes/hardening.make
ifeq (,$(filter nohardening,$(DEB_BUILD_OPTIONS)))
CXXFLAGS+=	$(HARDENING_CFLAGS) -DHAVE_RULES
LDFLAGS+=	$(HARDENING_LDFLAGS)
endif

CXXFLAGS+=	-DHAVE_RULES

export CPPFLAGS CXXFLAGS LDFLAGS
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"

override_dh_auto_build:
	sed -i.nocppflags -e 's/\$$(CXX) \$$(CXXFLAGS)/$$(CXX) $$(CPPFLAGS) $$(CXXFLAGS)/' Makefile
	dh_auto_build -- HAVE_RULES=yes TINYXML=-ltinyxml
	$(XP) $(DB2MAN) man/cppcheck.1.xml

override_dh_auto_clean:
	dh_auto_clean
	[ ! -f Makefile.nocppflags ] || mv -f Makefile.nocppflags Makefile

override_dh_auto_test:
	dh_auto_test -- HAVE_RULES=yes TINYXML=-ltinyxml

override_dh_auto_install:
	dh_auto_install -- HAVE_RULES=yes TINYXML=-ltinyxml

%:
	dh $@