File: rules

package info (click to toggle)
libbase 1.1.6-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 840 kB
  • ctags: 978
  • sloc: java: 8,709; xml: 1,533; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 968 bytes parent folder | download
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
#!/usr/bin/make -f
# debian/rules file for libbase-java (uses cdbs)

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

JAVA_HOME := /usr/lib/jvm/default-java
ANT_HOME := /usr/share/ant

DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar commons-logging junit ant-contrib ant-junit
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_BUILD_TARGET := jar javadoc
DEB_ANT_CHECK_TARGET := test

DEB_UPSTREAM_VERSION := 1.1-SNAPSHOT
 
clean::
	if [ ! -d lib ]; then mkdir lib; fi
	rm -f test-lib/*

install/libbase-java::
	install -D -m 644 ./dist/libbase-$(DEB_UPSTREAM_VERSION).jar debian/libbase-java/usr/share/java/libbase-$(DEB_UPSTREAM_VERSION).jar
	ln -s libbase-$(DEB_UPSTREAM_VERSION).jar debian/libbase-java/usr/share/java/libbase.jar
	jh_classpath -plibbase-java --classpath=/usr/share/java/commons-logging.jar debian/libbase-java/usr/share/java/libbase-$(DEB_UPSTREAM_VERSION).jar
	jh_depends