File: rules

package info (click to toggle)
libsimple-validation-java 0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,744 kB
  • sloc: java: 4,472; xml: 3,296; sh: 16; makefile: 15
file content (21 lines) | stat: -rwxr-xr-x 636 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
#!/usr/bin/make -f

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

JAVA_HOME		:= /usr/lib/jvm/default-java
DEB_ANT_BUILD_TARGET	:= jar
DEB_ANT_ARGS            := -Dplatforms.JDK_1.5.home=$(JAVA_HOME)
DEB_JARS		:= ant-nodeps

clean::
	jh_build --clean

install/libsimple-validation-java::
	mv dist/ValidationAPI.jar dist/simple-validation.jar
	jh_classpath --classpath="/usr/share/java/org-openide-util-lookup.jar /usr/share/java/org-openide-util.jar" dist/simple-validation.jar
	jh_installlibs dist/simple-validation.jar
	jh_depends

get-orig-source:
	sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)