aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: 6c59926c20a0fec22e25645f3d883f48f67018c7 (plain)
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
#!/usr/bin/make -f
# Written by Yannick Jestin
# From an example by Antti-Juhani Kaijanaho
# You may treat this file as if it were in the public domain.

librules_interface = 1
include debian/librules.mk

debian/stamp/binary/arch : debian/stamp/binary/ivy-java

#export CLASSPATH=.:/usr/share/kaffe/Klasses.jar:/usr/share/java/repository

debian/stamp/build :
	$(MAKE) -C src JAVAC=jikes
	touch $@

debian/stamp/clean-build:
	-$(MAKE) -C src clean

javarep=$(rootdir)/usr/share/java/repository	
mandir=$(rootdir)/usr/share/man/man1

debian/stamp/binary/ivy-java	: package=ivy-java
debian/stamp/binary/ivy-java	: debian/stamp/build
	$(prebinary)
	$(install_dir) $(javarep)
	$(install_dir) $(exampledir)
	$(install_dir) $(docbasedir)
	$(install_dir) $(mandir)
	cp -r src/fr $(javarep)
	mkdirhier $(docdir)/doc/html/api 
	( cd src; javadoc -d $(docdir)/doc/html/api *java )
	cp -r doc/changes.html $(docdir)
	cp doc/ivy-java.1 $(mandir)
	gzip -9 $(mandir)/ivy-java.1
	rm -f $(docdir)/changes.html 
	$(install_nonex) debian/README.Debian $(docdir)
	$(install_nonex) BUGS README $(docdir)
	$(install_nonex) examples/*.java $(exampledir)
	$(install_nonex) debian/ivy-java $(docbasedir)
	$(install_nonex) doc/changes.html $(docdir)/changelog.html
	lynx -dump -nolist doc/changes.html > $(docdir)/changelog
	$(gzip) $(docdir)/changelog $(docdir)/changelog.html
	$(postbinary)
	touch $@