File: rules

package info (click to toggle)
node-js-yaml 3.11.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,188 kB
  • sloc: makefile: 102; sh: 27
file content (39 lines) | stat: -rwxr-xr-x 1,162 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
35
36
37
38
39
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@

override_dh_auto_build:
	# Prevent makefile from being used. Eslint is not in Debian.

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	mocha -R spec
else
	@echo '**********************************************************'
	@echo 'Skip testsuite                                       '
	@echo '**********************************************************'
endif

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/node-js-yaml/usr/lib/nodejs/js-yaml/bin/js-yaml.js

override_dh_installman:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	help2man --no-info --name "JavaScript YAML parser and dumper" --include=debian/help2man.include bin/js-yaml.js > debian/js-yaml.1
	dh_installman
else
skipped_dh_installman:
	@echo '**********************************************************'
	@echo 'Skip installing man                                       '
	@echo '**********************************************************'
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/js-yaml.1