File: rules

package info (click to toggle)
coffeescript 2.7.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,360 kB
  • sloc: makefile: 20; xml: 9; sh: 6; javascript: 5
file content (25 lines) | stat: -rwxr-xr-x 836 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_build:
	cp /usr/share/nodejs/coffeescript/lib/coffeescript/parser.js lib/coffeescript/
	mkdir -p docs/v1/browser-compiler
	chmod +x bin/cake
	bin/cake build
	MINIFY=false bin/cake build:browser
	uglifyjs -o debian/coffee-script.min.js docs/v2/browser-compiler-modern/coffeescript.js
	rm -f docs/v1/browser-compiler/coffee-script.js
	MINIFY=false bin/cake build:browser
	uglifyjs -o tmp.min.js docs/v2/browser-compiler-modern/coffeescript.js
	mv tmp.min.js docs/v1/browser-compiler/coffee-script.js
	# generate manpage based on --help option of script itself
	HOME=/tmp help2man \
		--name="interpreter and compiler for the CoffeeScript language" \
		--version-string="$(DEB_VERSION_UPSTREAM)" \
		--no-info \
		--output=debian/coffee.1 \
		bin/coffee