File: rules

package info (click to toggle)
libpj-java 0.0~20150107%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 13,396 kB
  • sloc: java: 99,543; ansic: 987; sh: 153; xml: 26; makefile: 10; sed: 4
file content (18 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

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

%:
	dh $@ --with javahelper --with maven_repo_helper

override_jh_build:
	jh_build --no-javadoc pj.jar `grep "^edu\/" compile | sed '/.*test.*/d; s/^/lib\//; s/\\\//' | paste -sd " " -`

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Remove .class files from the library, the test will use the jar.
	$(RM) `find lib/ -name "*.class"`
	# Call run-unit-test, which builds the test classes and run them against the
	# installed jar. As it is not installed yet, we pass it through CLASSPATH.
	CLASSPATH=`readlink -f pj.jar` sh debian/tests/run-unit-test
endif