File: rules

package info (click to toggle)
underscore 1.9.1~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,136 kB
  • sloc: makefile: 14; sh: 6
file content (23 lines) | stat: -rwxr-xr-x 572 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

%:
	dh $@

# build minified browser library
# * include source-map
# * include pre-compressed gzip and brotli files
%.min.js: %.js
	uglifyjs --compress --mangle \
		--source-map "base='$(CURDIR)',url='$*.min.js.map'" \
		--output $@ \
		-- $<
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
	pigz --force --keep -11 -- $@ $*.min.js.map
	brotli --force --keep --best -- $@ $*.min.js.map
endif

override_dh_auto_build: underscore.min.js

# install core documentation with all binary packages
override_dh_installdocs:
	dh_installdocs -- README.md index.html