File: rules.sos

package info (click to toggle)
libjfreereport-java 0.8.3c-5
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 4,904 kB
  • ctags: 11
  • sloc: makefile: 102
file content (52 lines) | stat: -rw-r--r-- 1,251 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
47
48
49
50
51
52
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Build with Kaffe
export JAVA_HOME=/usr/lib/kaffe
export JAVA=/usr/lib/kaffe/bin/java
export JAR=fastjar
export CLASSPATH=/usr/share/kaffe:/usr/share/java/libgcj.jar:.
export LIBRARY = $(shell head -1 debian/control | sed 's/Source? lib\(.*\)-java/\1/')
export VERSION = $(shell head -1 debian/changelog | sed 's/.*(\(.*\)).*/\1/' )
export SRCDIR=$(LIBRARY)-$(VERSION)



configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.

	touch configure-stamp


build: build-stamp
build-stamp:
	dh_testdir
	(cd $(SRCDIR); jikes -d ../classes -classpath ${CLASSPATH}:. `find . -name "*.java"`)
	(cd classes ; ls ;$(JAR) cvf ../../$(LIBRARY)-$(VERSION).jar `find . -name "*.class"`)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	-rm -f build-stamp
	dh_clean

binary-indep: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	#
	# Package 
	#
	install -m 644 $(SRCDIR)/$(LIBRARY)-$(VERSION).jar \
	debian/libjfreereport-java/usr/share/java/$(LIBRARY)-$(VERSION).jar
	ln -s $(LIBRARY)-$(VERSION).jar debian/libjfreereport-java/usr/share/java/$(LIBRARY).jar

binary: binary-indep 

.PHONY: binary binary-indep clean