File: rules

package info (click to toggle)
node-jsdoc2 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: javascript: 4,319; xml: 279; makefile: 19; sh: 4
file content (34 lines) | stat: -rwxr-xr-x 817 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
# -*- makefile -*-

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

PACKAGE = node-jsdoc2
DESTDIR = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@


override_dh_install:
	dh_install
	# install app/run.js as an executable
	# removing the \r characters from MS-DOS file format
	mkdir -p $(DESTDIR)/usr/bin
	cat app/run.js | tr -d '\r' > $(DESTDIR)/usr/bin/jsdoc2
	chmod +x $(DESTDIR)/usr/bin/jsdoc2

override_dh_fixperms:
	dh_fixperms
	chmod +x $(DESTDIR)/usr/share/nodejs/jsdoc2/app/run.js
	# replace the embedded prototype.js script
	rm -f $(DESTDIR)/usr/share/nodejs/jsdoc2/app/test/prototype.js
	ln -s ../../../../javascript/prototype/prototype.js \
	      $(DESTDIR)/usr/share/nodejs/jsdoc2/app/test/

override_dh_installdocs:
	dh_installdocs
	dh_nodejs_autodocs

override_dh_auto_test: