blob: b55c53ca80beda7459d274ab7112f1c9250f1f5b (
plain)
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
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
DEB_GHC_EXTRA_PACKAGES := libghc-ekg-data (>= $(CABAL_VERSION))
MIN_JS = debian/jquery-1.6.4.min.js debian/jquery.flot.min.js
install/libghc-ekg-data:: debian/tmp-inst-ghc
mv debian/tmp-inst-ghc/usr/share/ekg \
debian/libghc-ekg-data/usr/share
for i in $(MIN_JS); do \
install -m 0644 \
$$i debian/libghc-ekg-data/usr/share/ekg/assets/ ; \
done
debian/%.min.js: assets/%.js
uglifyjs -o $@ $<
.PHONY: minify-js
minify-js: $(MIN_JS)
|