File: rules

package info (click to toggle)
twitter-bootstrap 2.0.2%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 2,728 kB
  • ctags: 594
  • sloc: makefile: 106
file content (51 lines) | stat: -rwxr-xr-x 1,410 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
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
#!/usr/bin/make -f

SHELL := sh -e

%:
	dh ${@}

dfsg:
	rm -f docs/assets/boostrap.zip
	rm -f docs/assets/img/bird.png
	rm -f docs/assets/img/browsers.png
	rm -f docs/assets/img/github-16px.png
	rm -f docs/assets/img/icon-github.png
	rm -f docs/assets/img/icon-twitter.png
	rm -f docs/assets/js/jquery.js
	rm -rf docs/assets/js/google-code-prettify
	rm -f js/tests/vendor/jquery.js

override_dh_auto_clean:
	dh_auto_clean

	rm -f debian/local/*/*.min.js

override_dh_auto_build:
	dh_auto_build

	for _FILE in js/*.js debian/local/*/*.js; \
	do \
		yui-compressor --type js -o $$(dirname $${_FILE})/$$(basename $${_FILE} .js).min.js $${_FILE}; \
	done

	for _FILE in debian/local/*/*.css; \
	do \
		yui-compressor --type css -o $$(dirname $${_FILE})/$$(basename $${_FILE} .css).min.css $${_FILE}; \
	done

override_dh_auto_install:
	dh_auto_install

	mkdir -p debian/libjs-twitter-bootstrap-docs/usr/share/doc/libjs-twitter-bootstrap-docs
	cp README.md debian/libjs-twitter-bootstrap-docs/usr/share/doc/libjs-twitter-bootstrap-docs/README.css
	cp docs/assets/js/README.md debian/libjs-twitter-bootstrap-docs/usr/share/doc/libjs-twitter-bootstrap-docs/README.js

override_dh_builddeb:
	dh_builddeb -- -Zxz -z9

override_dh_install:
	dh_install --fail-missing

	# Removing usless files
	rm -f debian/libjs-twitter-bootstrap-docs/usr/share/doc/libjs-twitter-bootstrap-docs/html/build/node_modules/hogan.js/LICENSE