File: rules

package info (click to toggle)
libcommons-logging-java 1.1.1-9
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,300 kB
  • sloc: java: 5,405; xml: 3,887; makefile: 22
file content (32 lines) | stat: -rwxr-xr-x 1,232 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME		     := /usr/lib/jvm/default-java
DEB_ANT_BUILD_TARGET := dist
DEB_JARS		     := commons-logging log4j-1.2 excalibur-logkit avalon-framework servlet-api-2.5 junit ant-junit

makebuilddir/lib$(PACKAGE)-java::
	# copy MANIFEST.MF to src/main/resources/META-INF/ to include it in the jar
	install -d src/main/resources/META-INF/
	install -m644 src/main/conf/MANIFEST.MF src/main/resources/META-INF/

binary-post-install/$(PACKAGE)::
	mh_installpoms -p$(PACKAGE) -e$(VERSION)
	mh_installjar -p$(PACKAGE) -e$(VERSION) -l pom.xml \
	  target/commons-logging-$(VERSION).jar
	mh_installjar -p$(PACKAGE) -e$(VERSION) -l debian/pom-api.xml \
	  target/commons-logging-api-$(VERSION).jar
	# commons-logging-adapters has no POM
	dh_install target/commons-logging-adapters-$(VERSION).jar usr/share/java
	dh_link usr/share/java/commons-logging-adapters-$(VERSION).jar usr/share/java/commons-logging-adapters.jar

clean::
	rm -rf debian/tmp

get-orig-source:
	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename