File: rules

package info (click to toggle)
gccxml 0.9.0%2Bcvs20120420-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 81,352 kB
  • sloc: ansic: 780,439; cpp: 35,850; asm: 26,833; sh: 5,078; makefile: 4,702; lex: 589; awk: 566; perl: 334; yacc: 271; pascal: 86; python: 29
file content (36 lines) | stat: -rwxr-xr-x 837 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
#!/usr/bin/make -f

# Required by dpkg 1.16.1.
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk

CMAKE_INSTALL_FLAG = -DGCCXML_INSTALL_FOR_MUMMY:BOOL=ON

CMAKE_FLAGS = $(CMAKE_INSTALL_FLAG) \
	-DGCCXML_DOC_DIR:STRING=/share/doc/gccxml

pkg_run = gccxml
pkg_dev = libgccxml-dev

%:
	dh $@ --buildsystem=cmake --parallel

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)

override_dh_install:
	# Runtime Package
	dh_install -p$(pkg_run) usr/bin
	dh_install -p$(pkg_run) usr/share
	# Development Package
	dh_install -p$(pkg_dev) usr/include
	dh_install -p$(pkg_dev) --autodest usr/lib/lib*.a

override_dh_auto_build:
	cp -a debian/Support/* GCC_XML/Support
	dh_auto_build

VER_FULL = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)
# See Ginkgo CADx rules for original source