File: rules

package info (click to toggle)
libplexus-utils 1.0alpha1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 988 kB
  • ctags: 1,367
  • sloc: java: 12,827; xml: 164; makefile: 19
file content (46 lines) | stat: -rwxr-xr-x 1,660 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
41
42
43
44
45
46
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2005 Trygve Laugstøl <trygvis@codehaus.org>

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

JAVA_HOME := /usr/lib/kaffe
ANT_HOME := /usr/share/ant1.6

# 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.
# ant.jar and $(JAVA_HOME)/lib/tools.jar are automatically added if they
# exist.
DEB_JARS := /usr/share/ant1.6/lib/ant-launcher.jar

# Build compiler
DEB_ANT_COMPILER := jikes

# Targets to invoke for building, installing, testing and cleaning up.
# Building uses the default target from build.xml, installing and testing is
# only called if the corresponding variable is set. You can also specify
# multiple targets for each step.
DEB_ANT_BUILD_TARGET   := jar
#DEB_ANT_INSTALL_TARGET := install
#DEB_ANT_TEST_TARGET    :=
DEB_ANT_CLEAN_TARGET   := clean
DEB_ANT_BUILDFILE      := debian/build.xml

# This example assumes that Ant creates a JAR in dist which should be installed
# into /usr/share/java with the appropriate API version in the name. These
# steps can also be handled by debhelper (debian/*.install and debian/*.links),
# of course.

LIBRARY_PACKAGE := plexus-utils
API_VERSION     := 1.0alpha1

TAG=PLEXUS_UTILS_1_0_ALPHA_1
CVSROOT=:pserver:anonymous@cvs.plexus.codehaus.org:/scm/plexus
ORIG=libplexus-utils-$(API_VERSION)

get-orig-source:
	rm -rf libplexus-utils_$(API_VERSION)
	cvs -d ${CVSROOT} -Q export -r ${TAG} -d $(ORIG) plexus/plexus-utils
	tar zcf libplexus-utils_$(API_VERSION).orig.tar.gz $(ORIG)
	rm -rf $(ORIG)