3
include /usr/share/cdbs/1/class/ant.mk
4
include /usr/share/cdbs/1/rules/debhelper.mk
6
JAVA_HOME := /usr/lib/jvm/default-java/
7
DEB_ANT_BUILD_TARGET := jar
8
DEB_ANT_CHECK_TARGET := test
10
asm2 asm2-tree log4j-1.2 oro junit \
11
jaxen jdom1 xalan2 xercesImpl xmlParserAPIs ant-junit.jar ant-trax.jar
13
DEB_ANT_ARGS := -Dbuild.sysclasspath=first
15
INSTALL_DIR := usr/share/java
18
ln -sf /usr/share/xml/xhtml/schema/dtd/1.0/xhtml* $(DEB_SRCDIR)/etc/dtds/
20
install/libcobertura-java::
21
install -m 644 -D cobertura.jar $(DEB_SRCDIR)/debian/libcobertura-java/$(INSTALL_DIR)/cobertura-$(DEB_UPSTREAM_VERSION).jar
22
dh_link /$(INSTALL_DIR)/cobertura-$(DEB_UPSTREAM_VERSION).jar /$(INSTALL_DIR)/cobertura.jar
25
rm -rf $(DEB_SRCDIR)/examples/**/*.ser
26
rm -rf $(DEB_SRCDIR)/examples/**/instrumented
27
rm -rf $(DEB_SRCDIR)/examples/**/classes
28
rm -rf $(DEB_SRCDIR)/examples/**/reports
29
rm -rf $(DEB_SRCDIR)/etc/dtds/xhtml*
3
DEB_UPSTREAM_VERSION := \
4
$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)+dfsg-.*/\1/p')
7
dh --with javahelper $@
9
override_dh_auto_build:
11
docbook-to-man debian/cobertura-check.sgml > cobertura-check.1
12
docbook-to-man debian/cobertura-instrument.sgml > cobertura-instrument.1
13
docbook-to-man debian/cobertura-merge.sgml > cobertura-merge.1
14
docbook-to-man debian/cobertura-report.sgml > cobertura-report.1
16
override_dh_auto_install:
18
mh_installpom -plibcobertura-java $(CURDIR)/debian/cobertura.pom
19
mh_installjar -plibcobertura-java -l $(CURDIR)/debian/cobertura.pom \
20
$(CURDIR)/cobertura.jar
21
mh_installpom -plibcobertura-java $(CURDIR)/debian/cobertura-runtime.pom
23
override_dh_auto_clean:
35
31
--upstream-version $(DEB_UPSTREAM_VERSION) \
36
32
--download-version $(DEB_UPSTREAM_VERSION) \