File: rules

package info (click to toggle)
node-lodash 4.17.15+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,352 kB
  • sloc: makefile: 16; sh: 2
file content (23 lines) | stat: -rwxr-xr-x 706 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 -*-

# Tell nodejs to look for embedded modules
export NODE_PATH := ${CURDIR}

%:
	dh $@

override_dh_auto_build:
	node lodash-cli/bin/lodash modularize exports=node -o modules
	node lodash-cli/bin/lodash modularize exports=npm -o packages
	node lodash-cli/bin/lodash modularize exports=es -o es
	dh_auto_build
	mkdir -p debian/build
	cp lodash.js debian/build
	uglifyjs.terser -o debian/build/$$(basename lodash .js).min.js lodash.js

override_dh_install:
	dh_install
	rm -vf debian/node-lodash/usr/share/nodejs/lodash/LICENSE
	rm -rvf debian/node-lodash-packages/usr/share/nodejs/lodash.*/LICENSE
	rm -rvf debian/node-lodash-packages/usr/share/nodejs/lodash.*/README.md