source: trunk/java-client/Makefile@ 2187

Last change on this file since 2187 was 2187, checked in by say1, 23 years ago

removed diff

  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1
2
3.PHONY: docs clean all distclean test
4
5# find the top-level directory of the java-client tree
6# and add it to the java CLASSPATH
7
8ifndef GSJCHOME
9 export GSJCHOME=$(PWD)
10endif
11
12ifdef CLASSPATH
13 export CLASSPATH += :$(GSJCHOME)
14else
15 export CLASSPATH = $(GSJCHOME)
16endif
17
18
19GREENSTONEIDLFILE=/home/nzdl/gsdl/lib/corbaiface.idl
20
21all : org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java
22 (cd gnu/getopt && $(MAKE) all)
23 (cd org/nzdl/gsdl && $(MAKE) all)
24
25org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java : corbaiface.idl
26 idlj -fclient -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl
27 idlj -fserver -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl
28 javac org/nzdl/gsdl/corba/gsdlInterface/*.java
29
30
31# Generate documenmtation with Javadoc.
32# This command may use arguments not found in all versions of javadoc
33
34docs :
35 rm -rf docs
36 mkdir docs
37 javadoc -private -version -author -use -d docs -header "Documentation for the <a href=\"http://www.corba.org/\">CORBA</a> interface to the <a href=\"http://www.nzdl.org/\">NZDL</a>'s Greenstone Digital Library software." -footer "This software is distributed under the <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a>" -windowtitle "Greenstone Digital Library Software from the NZDL" -link "http://www.scms.waikato.ac.nz/help/reference/jdk1.2/docs/api/" gnu.getopt org.nzdl.gsdl org.nzdl.gsdl.service org.nzdl.gsdl.util org.nzdl.gsdl.corba.gsdlInterface org.nzdl.gsdl.ptp org.nzdl.gsdl.SimpleGraphicalClient -overview overview.html
38 cp org/nzdl/gsdl/service/nzdl-service-package.png docs/org/nzdl/gsdl/service/
39
40clean :
41 rm -f log.file.*
42 rm -f knownIORs.properties
43 (cd gnu/getopt && $(MAKE) clean)
44 (cd org/nzdl/gsdl && $(MAKE) clean)
45 rm -rf docs
46 rm -rf org/nzdl/gsdl/corba
47
48distclean : clean
49
50
51test : all
52 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SimpleClient -a
53
54many : all
55 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SearchAllCollections -q "marriage customs"
56 echo "This is causing a bunch of corba protocol errors for me. How about you?"
57
Note: See TracBrowser for help on using the repository browser.