File: rules

package info (click to toggle)
caveconverter 0~20170114-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,792 kB
  • sloc: java: 9,290; xml: 242; makefile: 18
file content (32 lines) | stat: -rwxr-xr-x 869 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
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java
DEB_DEBIAN_DIR:=$(dir $(firstword $(MAKEFILE_LIST)))

# Put depended upon jars in here
# only needed for build tests
# export CLASSPATH=/usr/share/java/cobertura.jar:/usr/share/java/junit.jar

%:
	dh --with javahelper $@

override_dh_installman:
	dh_installman
	#change to unix command name in examples files
	sed --in-place -e 's/java -jar CaveConverter.jar/caveconverter/' $(DEB_DEBIAN_DIR)/caveconverter/usr/share/doc/caveconverter/examples/*.bat
	rename 's/\.bat$$//' $(DEB_DEBIAN_DIR)/caveconverter/usr/share/doc/caveconverter/examples/*.bat

override_jh_depends:
	jh_depends --jvm=headless

tests:
	dh_prep
	ant coverage.regressions
	
override_jh_clean:
	rm -rf build
	jh_clean

get-orig-source:
	uscan --force-download --repack --rename --download-current-version --destdir=.. $(DEB_DEBIAN_DIR)/..