File: rules

package info (click to toggle)
velocity 1.4-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 17,900 kB
  • ctags: 9,916
  • sloc: java: 24,335; xml: 17,188; sh: 99; lisp: 53; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 983 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 for velocity (uses CDBS)

#export LANG=C

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

UPSTREAM_VERSION := $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\-)

JAVA_HOME	     := /usr/lib/kaffe
ANT_HOME             := /usr/share/ant

DEB_JARS             := ${ANT_HOME}/lib/ant-launcher.jar junit logkit servlet-2.3 log4j-1.2 commons-collections werken.xpath bcel oro jdom0 antlr
DEB_ANT_CLEAN_TARGET := clean examples-clean-all javadocs-clean test-clean
DEB_ANT_BUILD_TARGET := jar javadocs #test
DEB_BUILDDIR         := build

clean::
	-rm -f build/lib/*
	-rm -f build/velocity.log

install/velocity::
	install -m 644 bin/velocity-${UPSTREAM_VERSION}.jar debian/velocity/usr/share/java/velocity-${UPSTREAM_VERSION}.jar
	install -m 644 src/java/org/apache/velocity/runtime/defaults/velocity.properties debian/velocity/etc/velocity