File: rules

package info (click to toggle)
velocity 1.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,000 kB
  • ctags: 5,029
  • sloc: java: 37,878; xml: 14,959; sh: 172; makefile: 27; jsp: 24; sql: 18
file content (38 lines) | stat: -rwxr-xr-x 1,880 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
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
# debian/rules for velocity (uses CDBS)

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

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_JARS             := ant-nodeps junit excalibur-logkit servlet-api-2.5 log4j-1.2 commons-lang commons-collections3 commons-logging werken.xpath bcel oro jdom1 antlr
DEB_ANT_BUILD_TARGET := package javadoc
DEB_ANT_BUILDFILE    := /usr/share/maven-ant-helper/maven-build.xml
DEB_ANT_ARGS         := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dbin.package=$(PACKAGE) -Dversion=$(VERSION)

clean::
	-rm -rf debian/tmp

makebuilddir/velocity::
	# install the resources in a separate directory (src/resources) to please the Maven-like build
	install -d src/resources/org/apache/velocity/runtime/defaults
	install -m 644 src/java/org/apache/velocity/runtime/defaults/directive.properties src/resources/org/apache/velocity/runtime/defaults/directive.properties
	install -m 644 src/java/org/apache/velocity/runtime/defaults/velocity.properties src/resources/org/apache/velocity/runtime/defaults/velocity.properties
	install -m 644 debian/antlib.xml src/resources/org/apache/velocity/antlib.xml

build/velocity-doc::
	cd $(DEB_BUILDDIR) && $(JAVACMD) -classpath $(DEB_CLASSPATH) \
		 $(ANT_OPTS) -Dant.home=$(ANT_HOME) -Dbuild.docs=target/docs \
		 org.apache.tools.ant.Main -buildfile $(CURDIR)/build/build.xml docs

install/velocity::
	mh_installpoms -p$(PACKAGE)
	mh_installjar -p$(PACKAGE) -l pom.xml target/$(PACKAGE)-$(VERSION).jar
	install -m 644 src/java/org/apache/velocity/runtime/defaults/velocity.properties debian/velocity/etc/velocity

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