File: rules

package info (click to toggle)
janino 2.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 3,380 kB
  • ctags: 4,569
  • sloc: java: 33,295; xml: 579; sh: 140; makefile: 19; perl: 11
file content (30 lines) | stat: -rwxr-xr-x 1,093 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
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java

VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')

%:
	dh $@ --buildsystem ant

override_dh_auto_build:
	dh_auto_build -- -buildfile janino-dist/build.xml build

override_dh_auto_install:
	mh_installpom -plibjanino-java --no-parent --has-package-version -e$(VERSION) commons-compiler/pom.xml
	mh_installjar -plibjanino-java --java-lib -e$(VERSION) commons-compiler/pom.xml janino-dist/build/commons-compiler.jar
	
	mh_installpom -plibjanino-java --no-parent --has-package-version -e$(VERSION) commons-compiler-jdk/pom.xml
	mh_installjar -plibjanino-java --java-lib -e$(VERSION) commons-compiler-jdk/pom.xml janino-dist/build/commons-compiler-jdk.jar
	
	mh_installpom -plibjanino-java --no-parent --has-package-version -e$(VERSION) janino/pom.xml
	mh_installjar -plibjanino-java --java-lib -e$(VERSION) janino/pom.xml janino-dist/build/janino.jar
	
	jh_manifest -plibjanino-java

override_dh_auto_clean:
	-rm -rf janino-dist/build janino-dist/mirror
	mh_clean

get-orig-source::
	uscan --force-download