debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | export DH_VERBOSE=1 |
| 3 | |
| 4 | # With v1.0.0, We need a compressor that is compatible with ES6+ |
| 5 | # js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor) |
| 6 | js-compressor := terser |
| 7 | # lib = impress |
| 8 | # jspkg = libjs-$(lib) |
| 9 | # js-stems = $(lib) |
| 10 | # js-min = $(js-stems:%=debian/%.min.js) |
| 11 | |
| 12 | # |
| 13 | |
| 14 | %: |
| 15 | dh $@ |
| 16 | |
| 17 | override_dh_auto_build: |
| 18 | dh_auto_build |
| 19 | $(js-compressor) -o debian/impress.min.js js/impress.js |