File: rules

package info (click to toggle)
node-iconv 2.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,812 kB
  • sloc: ansic: 90,565; cpp: 109; makefile: 18; sh: 2
file content (30 lines) | stat: -rwxr-xr-x 569 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
27
28
29
30
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build
	rm -f test/tmp/*

override_dh_auto_configure:
	node-gyp configure --node-iconv-use-system-libiconv=1

override_dh_auto_build:
	node-gyp build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	node test/run-tests.js
endif

override_dh_install:
	dh_install
	chmod 644 $(CURDIR)/debian/node-iconv/usr/lib/nodejs/iconv/lib/iconv.node