File: rules

package info (click to toggle)
librepository 1.1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 500 kB
  • ctags: 590
  • sloc: java: 3,762; xml: 1,533; makefile: 21
file content (32 lines) | stat: -rwxr-xr-x 1,211 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
#!/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 libbase gnumail commons-logging ant-contrib
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_BUILD_TARGET := compile jar javadoc

DEB_UPSTREAM_VERSION := 1.1-SNAPSHOT

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

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

install/librepository-java-doc::
	dh_install -plibrepository-java-doc 'bin/javadoc/*' usr/share/doc/librepository-java/api