File: rules

package info (click to toggle)
cofoja 1.1-r150-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 976 kB
  • ctags: 1,713
  • sloc: java: 10,500; xml: 217; sh: 184; makefile: 27
file content (40 lines) | stat: -rwxr-xr-x 1,231 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

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

ASM_VERSION := $(shell dpkg-query -f '$${source:Version}' --show libasm4-java)

%:
	dh $@  --with javahelper --buildsystem ant

override_dh_gencontrol:
	# Add a variable with the libasm4-java version for the Built-Using field
	dh_gencontrol -- -Vasm:Version=${ASM_VERSION}

override_dh_auto_build:
	# build unannotated cofoja library
	dh_auto_build -- -Dasm.jar=/usr/share/java/asm4-all.jar \
                         -Djunit.jar=/usr/share/java/junit4.jar

	# rebuild using the library.
	mv dist/cofoja.jar build/bootstrap.jar
	dh_auto_build -- -Dasm.jar=/usr/share/java/asm4-all.jar \
                         -Djunit.jar=/usr/share/java/junit4.jar \
                         -Dant.build.javac.source=1.7 \
                         -Dant.build.javac.target=1.7 \
                         clean bootstrap
	mv dist/ccofoja.jar dist/cofoja.jar

override_dh_auto_clean:
	-rm build/bootstrap.jar
	dh_auto_clean

override_dh_auto_test:
	ant -Dasm.jar=/usr/share/java/asm4-all.jar \
	    -Djunit.jar=/usr/share/java/junit4.jar \
	    -Dant.build.javac.source=1.7 \
	    -Dant.build.javac.target=1.7 \
	    test

get-orig-source:
	uscan --download-current-version --rename