File: rules

package info (click to toggle)
node-brfs 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 376 kB
  • sloc: makefile: 15; sh: 6
file content (28 lines) | stat: -rwxr-xr-x 727 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
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@

#override_dh_auto_build:

# at least run on example
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	# smoke test
	$(CURDIR)/bin/cmd.js $(CURDIR)/example/async.js
	$(CURDIR)/bin/cmd.js $(CURDIR)/example/main.js
	# basic test
	tap -R spec test/cmd.js
else
	@echo '**********************************************************'
	@echo 'Skip test suite                                           '
	@echo '**********************************************************'
endif

override_dh_fixperms:
	dh_fixperms
	chmod +x $(CURDIR)/debian/node-brfs/usr/lib/nodejs/brfs/bin/cmd.js