File: rules

package info (click to toggle)
bsh 2.0b4-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,072 kB
  • ctags: 3,680
  • sloc: java: 23,424; xml: 4,484; sh: 134; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 1,033 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
#!/usr/bin/make -f
# debian/rules file for bsh (uses cdbs)

export UPSTREAM_VERSION = $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\-)

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/java-gcj
#/usr/lib/kaffe
ANT_HOME := /usr/share/ant

DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar servlet-2.3 bsf javacc
DEB_ANT_BUILD_TARGET := javadoc jarall test

clean::
	# remove tests which also fail with SUN JDK 1.4
	rm -f tests/test-scripts/accessibility.bsh \
				tests/test-scripts/class13.bsh \
				tests/test-scripts/class3.bsh \
				tests/test-scripts/classinterf1.bsh \
				tests/test-scripts/strings.bsh

install/bsh::
	install -m 644 dist/bsh-$(UPSTREAM_VERSION).jar debian/bsh/usr/share/java/bsh-$(UPSTREAM_VERSION).jar
	ln -s bsh-$(UPSTREAM_VERSION).jar debian/bsh/usr/share/java/bsh.jar
	install -m 755 debian/_bsh debian/bsh/usr/bin/bsh
	install -m 755 debian/xbsh debian/bsh/usr/bin/