File: rules

package info (click to toggle)
node-is-typedarray 1.0.0%2B~1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 128 kB
  • sloc: javascript: 65; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 689 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
#!/usr/bin/make -f
# -*- makefile -*-

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

js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)

# This has to be exported to make some magic below work.
export DH_OPTIONS


%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	if [ ! -d debian/build ]; \
		then mkdir debian/build; \
	fi; \
	for _FILE in index.js ; \
	do \
		cp $${_FILE} debian/build/; \
		cd debian/build/ && $(js-compressor)  -o $$(basename $${_FILE} .js).min.js \
			--source-map "filename=$$(basename $${_FILE} .js).min.js.map" $$(basename $${_FILE} .js).js; \
	done

override_dh_installdocs:
	dh_installdocs --link-doc=libjs-is-typedarray