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
|
#!/usr/bin/make -f
# debian/rules file for libmx4j-java (uses cdbs)
export VERSION = $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\-)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/default-java
include /usr/share/gcj/debian_defaults
ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs)))
with_gcj_native := yes
endif
DEB_JARS := log4j-1.2 commons-logging servlet-api-2.5 bcel jython gnumail activation axis jaxrpc saaj hessian
DEB_ANT_BUILDFILE := build/build.xml
DEB_ANT_BUILD_TARGET := compile.tools
install/libmx4j-java::
jar umf debian/remote-MANIFEST.MF dist/lib/mx4j-remote.jar
jar umf debian/core-MANIFEST.MF dist/lib/mx4j.jar
jh_installlibs -plibmx4j-java dist/lib/mx4j.jar \
dist/lib/mx4j-remote.jar dist/lib/mx4j-tools.jar
ifeq ($(with_gcj_native),yes)
install/libmx4j-java-gcj:: install/libmx4j-java
dh_nativejava -plibmx4j-java-gcj
endif
|