File: rules

package info (click to toggle)
libjt400-java 9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 35,296 kB
  • ctags: 50,596
  • sloc: java: 381,197; xml: 4,006; makefile: 17
file content (30 lines) | stat: -rwxr-xr-x 949 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | sed 's/-[0-9]*//')

%:
	dh $@ --with maven_repo_helper

override_dh_auto_clean:
	ant -Dbuild=. clean
	#remove files not cleaned by ant
	rm -rf include/servlet.jar java8/ jdbc42/
	#remove code that depend of non-free code (because we don't have jui400.jar)
	rm -rf */com/ibm/as400/vaccess
	rm -rf */utilities/VRunJavaApplication.java
	rm -rf */com/ibm/as400/util/commtrace/*
	# remove precompiled java files
	find . -iname '*.class' -delete

override_dh_auto_build:
	#this build the ant task required by ant
	cd build && javac -cp /usr/share/java/ant.jar *.java
	#link required libraries
	ln -s /usr/share/java/servlet-api-3.1.jar include/servlet.jar
	#run ant
	ant -lib .:./build jar8 -Dbuild=. -Djdk18=/usr

get-orig-source:
	uscan --repack --rename --force-download --compression=xz \
		--upstream-version $(VERSION) --verbose