File: rules

package info (click to toggle)
libjbzip2-java 0.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 332 kB
  • ctags: 344
  • sloc: java: 4,269; makefile: 15
file content (24 lines) | stat: -rwxr-xr-x 615 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@  --with javahelper

override_dh_auto_build:
	mkdir -p build/org/itadaki/bzip2
	javac -source 1.5 -target 1.5 -d build src/org/itadaki/bzip2/*.java
	cd build && jar cvf ../jbzip2.jar *

override_dh_clean:
	dh_clean
	rm -f jbzip2.jar
	rm -rf build

get-orig-source:
	svn co http://jbzip2.googlecode.com/svn/tags/release-0.9.1/ libbzip2-java-0.9.1
	find libbzip2-java-0.9.1 -name .svn | xargs -r rm -r
	GZIP=-9n tar czvf ../libjbzip2-java_0.9.1.orig.tar.gz libbzip2-java-0.9.1
	rm -rf libbzip2-java-0.9.1