File: rules

package info (click to toggle)
libcolt-free-java 1.2.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,220 kB
  • ctags: 14,190
  • sloc: java: 30,344; xml: 896; makefile: 22; sh: 3
file content (39 lines) | stat: -rwxr-xr-x 1,060 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
31
32
33
34
35
36
37
38
39
#!/usr/bin/make -f

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

%:
	dh $@ --with javahelper

override_dh_auto_configure:
	# move files from freehep-jaida into place - unfortunately these files do not build
	# mkdir -p src/hep
	# cp -a debian/freehep-jaida src/hep/aida
	dh_auto_configure

override_dh_auto_build:
	#Make this directory on build because GIT won't let you commit an empty
	#directory
	mkdir -p lib
	ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 build

override_dh_installdocs:
	dh_installdocs
	rm -rf debian/libcolt-java-doc/usr/share/doc/libcolt-java/licenses

override_dh_clean:
	dh_clean
	rm -rf build
	rm -rf lib/*.jar
	#This will deliberately fail if lib contains anything but jars
	! [ -d lib ] || rmdir lib
	rm -rf src/hep/aida

override_jh_installlibs:
	#In this case leave on the +dfsg version suffix as it affects the methods
	#available vs. the vanilla upstream lib.
	jh_installlibs -v --version-strip=X

get-orig-source:
	mkdir -p ../tarballs
	uscan --verbose --force-download --repack --compression xz --destdir ../tarballs