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
|
#!/usr/bin/make -f
# debian/rules for commons-daemon
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/java-gcj
ANT_HOME := /usr/share/ant
DEB_JARS := jaxp-1.2 xercesImpl
DEB_ANT_BUILD_TARGET := dist
LIBRARY=commons-daemon
VERSION=1.0.1
clean::
-(cd src/native/unix ; make clean)
-rm src/native/unix/config.log src/native/unix/config.status
-rm src/native/unix/native/Makefile
-rm src/native/unix/Makefile
-rm src/native/unix/Makedefs
common-configure-arch::
cd src/native/unix ; ./configure --with-java=$(JAVA_HOME) --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
common-build-arch::
cd src/native/unix ; make
install/lib${LIBRARY}-java::
install -m 644 dist/${LIBRARY}.jar debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${VERSION}.jar
|