#!/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