#!/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:
	find feature-detects -name '*.js' | LC_ALL=C sort | xargs cat > feature-detects.js
	slimit modernizr.js > modernizr.min.js

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