File: rules

package info (click to toggle)
libcommons-discovery-java 0.2-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 948 kB
  • ctags: 864
  • sloc: java: 4,044; xml: 260; makefile: 16
file content (30 lines) | stat: -rwxr-xr-x 1,025 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
28
29
30
#!/usr/bin/make -f
# debian/rules for libcommons-discovery-java

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This is the debhelper compatibility version to use.
#export DH_COMPAT=4

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_DIRS       := /usr/lib/kaffe
ANT_HOME             := /usr/share/ant1.6
DEB_JARS             := commons-logging junit /usr/share/ant1.6/lib/ant-launcher.jar
DEB_ANT_COMPILER     := jikes
DEB_BUILDDIR				 := discovery
DEB_ANT_BUILD_TARGET := dist

LIBRARY=commons-discovery
VERSION=0.2

install/lib${LIBRARY}-java::
	install -m 644 discovery/dist/${LIBRARY}.jar debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${VERSION}.jar
	echo "usr/share/java/${LIBRARY}-${VERSION}.jar usr/share/java/${LIBRARY}.jar" > debian/lib${LIBRARY}-java.links
#	cp -a discovery/dist/docs/ debian/lib${LIBRARY}-java/usr/share/doc/lib${LIBRARY}-java/

clean::
	-rm debian/lib${LIBRARY}-java.links