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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
# Create versioned jar file; strip off the debian source revision and package revision
include /usr/share/dpkg/pkg-info.mk
VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -r 's/\.(ds|dfsg).*//')
PREFIX=debian/libjlibeps-java
# Set the locale to make API documentation reproducible
LC_ALL = C.UTF-8
export LC_ALL
%:
dh $@
override_dh_auto_clean:
find . -name \*.jar -exec rm -f {} \;
find . -name \*.class -exec rm -f {} \;
rm -rf out bin api
override_dh_auto_build:
mkdir out bin
ant -Dbasedir=. -f debian/build.xml compile
ant -Dbasedir=. -f debian/build.xml jar doc
override_dh_install:
cp out/jlibeps.jar $(PREFIX)/usr/share/java/net.sourceforge.jlibeps-$(VERSION).jar
override_dh_link:
dh_link usr/share/java/net.sourceforge.jlibeps-$(VERSION).jar usr/share/java/net.sourceforge.jlibeps.jar
|