File: rules

package info (click to toggle)
jquery-mobile 1.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,068 kB
  • ctags: 243
  • sloc: php: 113; makefile: 54
file content (60 lines) | stat: -rwxr-xr-x 2,198 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_build:
	for file in `ls *.js`; do \
		yui-compressor $$file -o $${file%.js}.min.js; \
	done
	for file in `ls *.css`; do \
		yui-compressor $$file -o $${file%.css}.min.css; \
	done
	ln -s $$(basename jquery.mobile-*.js) jquery-mobile.js
	ln -s $$(basename jquery.mobile-*.min.js) jquery-mobile.min.js
	ln -s $$(basename jquery.mobile-*.css) jquery.mobile.css
	ln -s $$(basename jquery.mobile-*.js) jquery.mobile.js
	ln -s $$(basename jquery.mobile-*.min.js) jquery.mobile.min.js
	ln -s $$(basename jquery.mobile-*.min.css) jquery.mobile.min.css
	ln -s $$(basename jquery.mobile.structure-*.css) jquery.mobile.structure.css
	ln -s $$(basename jquery.mobile.structure-*.min.css) jquery.mobile.structure.min.css
	ln -s $$(basename jquery.mobile.theme-*.css) jquery.mobile.theme.css
	ln -s $$(basename jquery.mobile.theme-*.min.css) jquery.mobile.theme.min.css

override_dh_installdocs:
	dh_installdocs
	# extra-license-file
	rm -f debian/libjs-jquery-mobile-docs/usr/share/doc/libjs-jquery-mobile-docs/demos/docs/toolbars/glyphish-icons/Read\ me\ first\ -\ license.txt

override_dh_auto_clean:
	rm -f *.min.*
	rm -f jquery-mobile.js
	rm -f jquery.mobile.js
	rm -f jquery.mobile.css
	rm -f jquery.mobile.structure.css
	rm -f jquery.mobile.theme.css
	dh_auto_clean

get-orig-source:
	OUTDIR=$$PWD ; \
	MAKEFILE=`echo $(MAKEFILE_LIST) | awk '{ print $$1 }'` ; \
	FILE=`readlink -f $$MAKEFILE` ; \
	DIR=`dirname $$FILE` ; \
	cd $$DIR/.. ; \
	TMP=`mktemp -d` ; \
	if ! USCAN=`uscan --destdir $$TMP` ; then exit 1 ; fi ; \
	VERSION=`echo $$USCAN | sed -n 's/.*Newer version (\(.*\)) available.*/\1/p'` ; \
	cd $$TMP ; \
	unzip -o -q jquery.mobile-$$VERSION.zip; \
	mv jquery.mobile-$$VERSION jquery-mobile-$$VERSION; \
	cd jquery-mobile-$$VERSION ; \
	rm -f *.min.* ; \
	rm -f demos/css/themes/default/*.min.* ; \
	rm -f demos/js/jquery.js ; \
	rm -r demos/js/*.min.* ; \
	cd .. ; \
	tar c jquery-mobile-$$VERSION | gzip -9 > jquery-mobile_$$VERSION+dfsg.orig.tar.gz ; \
	rm -rf jquery-mobile-$$VERSION ; \
	mv jquery-mobile_$$VERSION+dfsg.orig.tar.gz $$OUTDIR ; \
	cd $$OUTDIR ; \
	rm -rf $$TMP ; \
	echo Saved file at jquery-mobile_$$VERSION+dfsg.orig.tar.gz