File: rules

package info (click to toggle)
tntdb 1.3-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,044 kB
  • ctags: 2,387
  • sloc: cpp: 14,250; sh: 11,084; makefile: 252; ansic: 144; sql: 106
file content (23 lines) | stat: -rwxr-xr-x 762 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

DEB_BUILD_PARALLEL=yes

include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_CONFIGURE_EXTRA_FLAGS := --with-driverdir=/usr/lib/tntdb --with-doxygen
DEB_DH_MAKESHLIBS_ARGS := -Xusr/lib/tntdb

clean::
	rm -fr doc/html/ doc/latex/
	rm -f config.guess config.sub config.log
	rm -f src/config.h.in
	rm -f test/test.db

binary-post-install/libtntdb-dev::
	rm -f debian/libtntdb-dev/usr/share/doc/libtntdb-dev/html/jquery.js
	cd debian/libtntdb-dev/usr/share/doc/libtntdb-dev/html/; ln -s ../../../javascript/jquery/jquery.js jquery.js
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd test; sqlite3 test.db < sqlite-test.sql; ./tntdb-test || /bin/true
endif