File: rules

package info (click to toggle)
haskell-ekg 0.4.0.15-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 912 kB
  • sloc: javascript: 8,513; haskell: 278; makefile: 15
file content (23 lines) | stat: -rwxr-xr-x 560 bytes parent folder | download | duplicates (3)
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)