File: rules

package info (click to toggle)
cofoja 1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,064 kB
  • sloc: java: 10,706; xml: 306; sh: 174; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 558 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
#!/usr/bin/make -f

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

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

override_dh_auto_configure:
	# Install the dependencies in the lib directory instead of using Ivy
	mkdir -p lib
	ln -s /usr/share/java/junit4.jar   lib/junit.jar
	ln -s /usr/share/java/asm-all.jar lib/asm-all.jar

override_dh_auto_build:
	dh_auto_build -- dist -Dcofoja.bare.jar=dist/cofoja.jar

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_build -- test
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -Rf lib