File: rules

package info (click to toggle)
tntdb 1.3-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,048 kB
  • ctags: 2,387
  • sloc: cpp: 14,250; sh: 11,084; makefile: 251; ansic: 144; sql: 106
file content (23 lines) | stat: -rwxr-xr-x 717 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
#!/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

post-patches::
	touch src/mysql/.specs

clean::
	rm -fr doc/html/ doc/latex/

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