File: rules

package info (click to toggle)
libwibble 0.1.19
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 832 kB
  • ctags: 1,940
  • sloc: cpp: 9,798; makefile: 163; perl: 84; sh: 11
file content (24 lines) | stat: -rwxr-xr-x 736 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk

# TODO workaround for cmake breakage; debian bug #459207
CC = /usr/bin/gcc
CXX = /usr/bin/g++

DEB_MAKE_CHECK_TARGET := check
# Comment out the following line to use cmake
#DEB_CONFIGURE_EXTRA_FLAGS += --disable-shared --with-pic

# Store build information
common-binary-post-install-arch common-binary-post-install-indep::
	dh_buildinfo

build/libwibble-dev::
	make -C ${DEB_BUILDDIR} doc

# I'd like to use debian/libwibble-dev.docs, but I have to invoke
# dh_installdocs here since the name of the build directory changes every time.
binary-install/libwibble-dev::
	dh_installdocs -p$(cdbs_curpkg) -n ${DEB_BUILDDIR}/doc/html