File: rules

package info (click to toggle)
libjaxp1.3-java 1.3.04-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,392 kB
  • ctags: 3,079
  • sloc: java: 9,195; makefile: 20
file content (30 lines) | stat: -rwxr-xr-x 842 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
# debian/rules file for libjaxp1.3-java (uses cdbs)

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

JAVA_HOME := /usr/lib/jvm/default-java

include /usr/share/gcj/debian_defaults
ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs)))
  with_gcj_native := yes
endif

clean::
	rm -rf build debian/build-stamp

build/libjaxp1.3-java:: debian/build-stamp
debian/build-stamp:
	mkdir -p build/license

	# An alternative would be to build the classes using GCJ
	$(JAVA_HOME)/bin/javac -d build `find javax org -name \*.java`
	cp LICENSE.*.txt README.*.txt build/license
	cd build && $(JAVA_HOME)/bin/jar -c -m ../manifest.commons \
		-f jaxp-1.3.jar javax license org
	touch debian/build-stamp

ifeq ($(with_gcj_native),yes)
install/libjaxp1.3-java-gcj:: binary-install/libjaxp1.3-java
	dh_nativejava -plibjaxp1.3-java-gcj
endif