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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#!/usr/bin/make -f
export DH_COMPAT=3
configure: configure-stamp
configure-stamp:
dh_testdir
find src/core/java -name \*.java > list.sources
touch configure-stamp
build: configure-stamp
dh_testdir
mkdir -p build
mkdir -p build/META-INF
cp etc/oscache.tld build/META-INF/taglib.tld
jikes -classpath /usr/lib/kaffe/jre/lib/rt.jar:/usr/share/java/servlet-2.3.jar:/usr/share/java/commons-collections.jar:/usr/share/java/commons-logging.jar -sourcepath src/core/java -d build @list.sources
fastjar -cf build/oscache-2.0.2.jar -C build com -C build META-INF
binary: binary-arch binary-indep
binary-arch:
binary-indep: build
clean:
dh_testdir
dh_testroot
dh_clean
rm -rf build/* configure-stamp list.sources
install: build
dh_testdir
dh_testroot
dh_clean -k
binary-indep: build install
dh_testdir
dh_testroot
dh_installdirs usr/share/java
cp build/oscache-2.0.2.jar debian/liboscache-java/usr/share/java/
dh_installchangelogs docs/changelog.html
dh_installdocs docs etc/oscache.properties
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: build install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|