File: rules

package info (click to toggle)
xom 1.2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 18,428 kB
  • ctags: 4,201
  • sloc: xml: 93,429; java: 48,420; makefile: 25; sh: 11
file content (37 lines) | stat: -rwxr-xr-x 1,271 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
#!/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		:= xercesImpl xalan xml-apis jaxen saxpath junit
DEB_ANT_BUILD_TARGET	:= jar samples javadoc
PACKAGE                 := xom
MAVEN_REPO              := http://repo1.maven.org/maven2

clean::
	-find -name '*.class' | xargs $(RM)
	-rm build/xom-samples-$(DEB_UPSTREAM_VERSION).jar
	mh_clean

install/libxom-java:: 
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l debian/poms/$(PACKAGE).pom build/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).jar 

install/libxom-java-doc::
	cp build/xom-samples.jar build/xom-samples-$(DEB_UPSTREAM_VERSION).jar
	dh_install -plibxom-java-doc build/xom-samples-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/
	#dh_link -plibxom-java-doc /usr/share/java/xom-samples-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/xom-samples.jar
	dh_installdocs -plibxom-java-doc build/apidocs

get-orig-source:
	-uscan --upstream-version 0 --rename	

get-orig-pom:
	mkdir -p debian/poms
	wget  -U NoSuchBrowser/1.0 -O debian/poms/$(PACKAGE).pom \
		$(MAVEN_REPO)/xom/$(PACKAGE)/$(DEB_UPSTREAM_VERSION)/$(PACKAGE)-$(DEB_UPSTREAM_VERSION).pom



DEB_PHONY_RULES += get-orig-source get-orig-pom