File: rules

package info (click to toggle)
pkg-js-tools 0.9.65
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,440 kB
  • sloc: perl: 2,342; sh: 312; javascript: 30; makefile: 23
file content (34 lines) | stat: -rwxr-xr-x 845 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
31
32
33
34
#!/usr/bin/make -f
# vim: set noet ft=make
# -*- makefile -*-

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

BIN:=$(shell ls tools/)
MANPAGE:=$(BIN:=.1)
FILEEXCLUDEDSOURCE:=$(shell ls dh_nodejs/dh_*)
export NPMIGNOREDEFAULT=$(shell pwd)/dh_nodejs/npmignore.default

%:
	dh $@

%.1:
	PERL5LIB=lib help2man -n $* -N --help-option=-h ./tools/$* > $*.1

override_dh_auto_configure: lib/Debian/Debhelper/Buildsystem/nodejs.pm
	dh_auto_configure

lib/Debian/Debhelper/Buildsystem/nodejs.pm: $(FILEEXCLUDEDSOURCE)
	echo OK
	./dh_nodejs/mk_regexp lib/Debian/Debhelper/Buildsystem/nodejs.pm \
		autopkgtest/runner

override_dh_auto_install: lib/Debian/Debhelper/Buildsystem/nodejs.pm $(MANPAGE)
	dh_auto_install

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	dh_auto_test
	debian/tests/pkg-js-autopkgtest
endif