File: rules

package info (click to toggle)
node-lodash 4.16.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,884 kB
  • ctags: 4,611
  • sloc: makefile: 13; sh: 2
file content (23 lines) | stat: -rwxr-xr-x 488 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
#!/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)

%:
	dh $@

override_dh_auto_clean:
	rm -rf debian/build

override_dh_auto_build:
	dh_auto_build
	mkdir -p debian/build
	cp lodash.js debian/build
	$(js-compressor)  -o debian/build/$$(basename lodash .js).min.js lodash.js

override_dh_install:
	dh_install
	rm -f debian/node-lodash/usr/lib/nodejs/lodash/LICENSE