File: rules

package info (click to toggle)
libxerces2-java 2.9.1-2%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 11,300 kB
  • ctags: 15,991
  • sloc: java: 119,347; xml: 12,773; sh: 37; makefile: 24
file content (40 lines) | stat: -rwxr-xr-x 1,167 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
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f
# debian/rules file for libxerces2-java (uses cdbs)

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

JAVA_HOME := /usr/lib/jvm/default-java
ANT_HOME  := /usr/share/ant

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

# Additional JARs to add to the class path, either full path or just the
# basename for JARs in /usr/share/java. The ".jar" suffix may also be ommitted
DEB_JARS := xml-commons-resolver-1.1 
#jaxp-1.3.jar stylebook

# Ant targets to call
DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_BUILD_TARGET := jar sampjar javadocs 
#docs

install/libxerces2-java::
	mkdir -p debian/libxerces2-java/usr/share/java
	install -m 644 build/xercesImpl.jar debian/libxerces2-java/usr/share/java/

ifeq ($(with_gcj_native),yes)
install/libxerces2-java-gcj:: install/libxerces2-java
	dh_nativejava -plibxerces2-java-gcj
endif

clean::
	rm -rf build

binary-post-install/libxerces2-java-doc::
	dh_install -plibxerces2-java-doc build/docs/javadocs/* \
			usr/share/doc/libxerces2-java-doc/api