File: rules

package info (click to toggle)
libfonts-java 1.1.6.dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 6,316 kB
  • ctags: 2,121
  • sloc: java: 11,495; xml: 1,595; makefile: 20
file content (30 lines) | stat: -rwxr-xr-x 1,125 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 libfonts-java (uses cdbs)

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

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

DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar jcommon libloader libbase commons-logging itext junit ant-contrib ant-junit
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_BUILD_TARGET := compile jar javadoc
DEB_ANT_CHECK_TARGET := test

DEB_UPSTREAM_VERSION := 1.1-SNAPSHOT

clean::
	-rm -rf build
	-rm -rf javadoc
	-rm -f libfonts-$(DEB_UPSTREAM_VERSION).jar
	# don't use them, go sure
	-rm -f lib/* lib/optional/* test-lib/*

install/libfonts-java::
	install -m 644 dist/libfonts-$(DEB_UPSTREAM_VERSION).jar debian/libfonts-java/usr/share/java/libfonts-$(DEB_UPSTREAM_VERSION).jar
	ln -s libfonts-$(DEB_UPSTREAM_VERSION).jar debian/libfonts-java/usr/share/java/libfonts.jar
	jh_classpath -libfonts-java --classpath="/usr/share/java/jcommon.jar /usr/share/java/libloader.jar" debian/libfonts-java/usr/share/java/libfonts-$(DEB_UPSTREAM_VERSION).jar
	jh_depends