File: rules

package info (click to toggle)
libstax2-api-java 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 948 kB
  • ctags: 2,000
  • sloc: java: 10,598; xml: 381; makefile: 20; sh: 6
file content (30 lines) | stat: -rwxr-xr-x 878 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

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

JAVA_HOME            := /usr/lib/jvm/default-java
ANT_HOME             := /usr/share/ant
DEB_ANT_COMPILER     := modern
DEB_ANT_BUILD_TARGET := debiandist
DEB_BUILDDIR         := .
DEB_ANT_BUILDFILE    := build.xml
DEB_ANT_CLEAN_TARGET := clean

clean::
	-rm -Rf build doc test dist build.xml debian/stax2-api.patched.pom
	mh_clean

configure/libstax2-api-java::
	# Move build.xml to the root dir
	cp debian/build.xml build.xml

	# Patch the POM to include the correct version number
	cp debian/stax2-api.pom debian/stax2-api.patched.pom
	sed -i debian/stax2-api.patched.pom -e 's/@VERSION@/$(DEB_UPSTREAM_VERSION)/g'

install/libstax2-api-java::
	mh_install -plibstax2-api-java

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