File: rules

package info (click to toggle)
libpixie-java 1:1.1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 980 kB
  • ctags: 2,482
  • sloc: java: 10,175; xml: 1,593; makefile: 18; sh: 13
file content (26 lines) | stat: -rwxr-xr-x 1,016 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
#!/usr/bin/make -f
# debian/rules file for libpixie-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 jcommon libbase commons-logging ant-contrib
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_BUILD_TARGET := compile jar javadoc

DEB_UPSTREAM_VERSION := 1.1-SNAPSHOT

clean::
	-rm -rf build
	-rm -rf javadoc
	-rm -f dist/libpixie-$(DEB_UPSTREAM_VERSION).jar lib/*

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