File: rules

package info (click to toggle)
node-constants-browserify 1.0.0%2Bdfsg-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 96 kB
  • sloc: sh: 57; makefile: 17; javascript: 13
file content (28 lines) | stat: -rwxr-xr-x 783 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
24
25
26
27
28
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	# build for smoke test not used see install
	node -pe 'JSON.stringify(require("constants"), null, "  ")' > constants.json

override_dh_auto_install:
	dh_auto_install
	# this file is trigger created
	! test -f debian/node-constants-browserify/usr/lib/nodejs/constants-browserify/constants.json

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	dh_auto_test
	node test.js
else
	@echo '**********************************************************'
	@echo 'Skip test suite                                           '
	@echo '**********************************************************'
endif