File: rules

package info (click to toggle)
libasm4-java 5.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-backports, jessie-kfreebsd
  • size: 19,732 kB
  • ctags: 4,596
  • sloc: java: 41,093; xml: 1,897; makefile: 28; sh: 9
file content (36 lines) | stat: -rwxr-xr-x 1,417 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
32
33
34
35
36
#!/usr/bin/make -f

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

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_JARS             := ant ant-junit junit xalan2 $(JAVA_HOME)/lib/tools.jar
DEB_ANT_BUILD_TARGET := dist
DEB_ANT_BUILDFILE    := build.xml
DEB_ANT_ARGS         := -propertyfile debian/ant.properties -Dproduct.version=$(VERSION)

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

binary-post-install/$(PACKAGE):: 
	mh_installpoms -p$(PACKAGE) -e$(VERSION)
	mh_installjar -p$(PACKAGE) -l --usj-name=asm4 -e$(VERSION) \
		output/dist/lib/asm-$(VERSION).pom output/dist/lib/asm-$(VERSION).jar
	for j in analysis commons tree util xml; do \
		mh_installjar -p$(PACKAGE) -l --usj-name=asm4-$$j -e$(VERSION) \
			output/dist/lib/asm-$$j-$(VERSION).pom output/dist/lib/asm-$$j-$(VERSION).jar; \
	done ;
	for j in debug-all all; do \
		mh_installjar -p$(PACKAGE) -l --usj-name=asm4-$$j -e$(VERSION) \
			output/dist/lib/all/asm-$$j-$(VERSION).pom output/dist/lib/all/asm-$$j-$(VERSION).jar; \
	done ;

binary-post-install/$(PACKAGE)-doc::
	dh_install -p$(PACKAGE)-doc output/dist/doc/javadoc/user/* usr/share/doc/$(PACKAGE)-doc/api
	dh_install -p$(PACKAGE)-doc output/dist/examples usr/share/doc/$(PACKAGE)-doc

clean::
	mh_clean