File: rules

package info (click to toggle)
jmock2 2.5.1+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,296 kB
  • sloc: java: 7,436; xml: 541; sh: 122; makefile: 24; ansic: 9
file content (31 lines) | stat: -rwxr-xr-x 1,067 bytes parent folder | download | duplicates (2)
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
#!/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
DEB_JARS  := hamcrest-core hamcrest-library junit4 cglib bsh asm3 objenesis \
		ant-junit
DEB_ANT_BUILD_TARGET = zip.jars javadoc
UVERSION  := $(shell dpkg-parsechangelog|grep ^Version:|cut -f2 -d' '|sed 's/+dfsg-[^-]*$$//')
ANT_ARGS  := -Dversion=$(UVERSION)
PKG       := libjmock2-java
JARSUFFIXES := legacy script junit3 junit4

common-install-prehook-indep::
	jh_installjavadoc -plibjmock2-java-doc build/jmock-$(UVERSION)/doc

	mh_installpom -o -v -p$(PKG) maven/jmock/pom.xml; \
	mh_installjar -p$(PKG) -l -njmock2 maven/jmock/pom.xml \
		build/jmock-$(UVERSION)/jmock-$(UVERSION).jar; \
	for SFX in $(JARSUFFIXES); do \
	   mh_installpom -o -v -p$(PKG) maven/jmock-$$SFX/pom.xml; \
	   mh_installjar -p$(PKG) -l -njmock2-$$SFX maven/jmock-$$SFX/pom.xml \
	      build/jmock-$(UVERSION)/jmock-$$SFX-$(UVERSION).jar; \
	done

clean::
	rm -f debian/.javahelper_clean

get-orig-source:
	uscan --force-download --verbose