File: rules

package info (click to toggle)
node-sqlite3 3.1.8%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,228 kB
  • ctags: 414
  • sloc: sql: 10,062; cpp: 1,874; sh: 149; makefile: 76; python: 8
file content (26 lines) | stat: -rwxr-xr-x 577 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PKGDIR=$(CURDIR)/debian/node-sqlite3/

override_dh_auto_configure:
	node-pre-gyp configure --sqlite=external --module_name=node_sqlite3

override_dh_auto_build:
	node-pre-gyp build

override_dh_auto_test:
	dh_auto_test || true

override_dh_fixperms:
	dh_fixperms
	chmod a-x $(PKGDIR)/usr/lib/nodejs/sqlite3/lib/binding/node-*/node_sqlite3.node

%:
	dh $@ --with nodejs

.PHONY: override_dh_auto_configure override_dh_auto_build \
	override_dh_fixperms override_dh_auto_test