File: rules

package info (click to toggle)
gccxml 0.9.0%2Bgit20140716-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 60,796 kB
  • ctags: 77,240
  • sloc: ansic: 793,461; cpp: 37,497; asm: 26,833; sh: 5,086; makefile: 4,700; lex: 589; awk: 566; perl: 334; yacc: 271; pascal: 86
file content (29 lines) | stat: -rwxr-xr-x 628 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
#!/usr/bin/make -f

CMAKE_FLAGS = -DGCCXML_INSTALL_FOR_MUMMY:BOOL=ON \
	-DGCCXML_DOC_DIR:STRING=/share/doc/gccxml

pkg_run = gccxml
pkg_dev = libgccxml-dev

%:
	dh $@ --buildsystem=cmake --parallel --with=autotools-dev

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

get-orig-source:
	./debian/makeSource.sh