File: rules

package info (click to toggle)
closure-compiler 20130227+dfsg1-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 12,776 kB
  • ctags: 45,946
  • sloc: java: 175,338; xml: 371; makefile: 19; sh: 6
file content (31 lines) | stat: -rwxr-xr-x 855 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
#!/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:
	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