File: rules

package info (click to toggle)
libxt-java 0.20051206-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,856 kB
  • ctags: 6,247
  • sloc: java: 22,326; xml: 3,166; sh: 19; makefile: 11
file content (21 lines) | stat: -rwxr-xr-x 776 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2003 Stefan Gybas <sgybas@debian.org>

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

DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar servlet-api-2.4
DEB_ANT_BUILD_TARGET   := compile

LIBRARY_PACKAGE := xt
API_VERSION     := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/^0.//g')


install/lib$(LIBRARY_PACKAGE)-java::
	install -m 644 lib/$(LIBRARY_PACKAGE)$(API_VERSION).jar debian/$(cdbs_curpkg)/usr/share/java/$(LIBRARY_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar
	ln -s $(LIBRARY_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar debian/$(cdbs_curpkg)/usr/share/java/$(LIBRARY_PACKAGE).jar