File: rules

package info (click to toggle)
modernizr 2.6.2+ds1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,028 kB
  • sloc: makefile: 10
file content (23 lines) | stat: -rwxr-xr-x 611 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

ifndef UPVER
UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 | cut -d+ -f1)
endif

DEBVER := $(UPVER)+ds1

%:
	dh $@

override_dh_auto_build:
        #  Make input order deterministic (Closes: #817979)
	find feature-detects -name '*.js' | LC_ALL=C sort | xargs cat > feature-detects.js
	uglifyjs -o modernizr.min.js modernizr.js

	# Drop copyright from minified version since it would get
	#+only the first stanza.
	uglifyjs -nc -o feature-detects.min.js feature-detects.js