File: rules

package info (click to toggle)
closure-compiler 20130227%2Brhino-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 43,948 kB
  • sloc: java: 269,095; javascript: 266,347; perl: 3,469; sh: 1,388; xml: 1,140; makefile: 78
file content (32 lines) | stat: -rwxr-xr-x 913 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

JAVA_HOME := /usr/lib/jvm/default-java
RST2MAN = rst2man

CP = "/usr/share/java/closure-compiler.jar /usr/share/java/args4j.jar /usr/share/java/guava.jar /usr/share/java/json.jar"

%:
	dh $@ --with maven_repo_helper

override_dh_auto_build:
	cd rhino && dpkg-source --before-build . && debian/rules
	ant -propertyfile debian/ant.properties jar-nodeps javadoc
	
	# update the manifest
	jh_manifest --verbose \
		--classpath $(CP) \
		--main com.google.javascript.jscomp.CommandLineRunner \
		build/closure-compiler-v20130227.jar

	# build the manpage
	$(RST2MAN) debian/closure-compiler.1.txt > debian/closure-compiler.1.tmp
	cat debian/manpage_encoding_declaration.UTF-8 debian/closure-compiler.1.tmp > debian/closure-compiler.1

override_dh_auto_test:
#	ant test

override_dh_auto_clean:
	dh_testdir
	ant clean
	$(RM) -rf gen
	$(RM) -rf debian/closer-compiler.1.tmp debian/closure-compiler.1