File: rules

package info (click to toggle)
sacjava 1.3+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 240 kB
  • sloc: java: 480; xml: 31; makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 613 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

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

%:
	dh $@ --with maven-repo-helper

override_dh_auto_build:
	$(JAVA_HOME)/bin/javac -source 1.7 -target 1.7 `find org -name "*.java" | xargs`
	$(JAVA_HOME)/bin/jar cvf sac-1.3.jar `find org -name "*.class" | xargs`
	bnd wrap --properties debian/sac.bnd --output sac-1.3.jar.tmp sac-1.3.jar
	mv sac-1.3.jar.tmp sac-1.3.jar

	$(JAVA_HOME)/bin/javadoc -locale en -encoding UTF-8 -notimestamp -source 1.7 -d doc `find org -name "*.java" | xargs`

get-orig-source:
	uscan --force-download --download-current-version --rename --repack --compression xz --verbose