File: rules

package info (click to toggle)
gccxml 0.9.0%2Bcvs20100501-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 79,132 kB
  • ctags: 73,371
  • sloc: ansic: 751,436; cpp: 34,175; asm: 26,833; sh: 5,077; makefile: 4,696; lex: 589; awk: 566; perl: 334; yacc: 271; pascal: 86; python: 29
file content (22 lines) | stat: -rwxr-xr-x 764 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_BUILDDIR = $(CURDIR)/Build
DEB_DESTDIR = $(CURDIR)/debian/gccxml

DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR)

clean::
	rm -rf $(DEB_BUILDDIR)

common-configure-arch::
	#cp debian/CMakeCache.txt.debian $(DEB_BUILDDIR)/CMakeCache.txt
	cd $(DEB_BUILDDIR) && cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGCCXML_DOC_DIR:STRING=/share/doc/gccxml

binary-install/gccxml::
	cd $(DEB_DESTDIR) && chrpath -d usr/bin/gccxml usr/bin/gccxml_cc1plus
	ln -s gccxml.1 $(DEB_DESTDIR)/usr/share/man/man1/gccxml_cc1plus.1
	dh_install debian/support/4.4/bits/c++config.h usr/share/gccxml-0.9/GCC/4.4/bits