source: trunk/java-client/Makefile@ 2476

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

added lots of Changelog stuff

  • 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 -verbose -fclient -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl
27 idlj -verbose -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.SimpleGraphicalClient -overview overview.html
38 cp org/nzdl/gsdl/service/nzdl-service-package.png docs/org/nzdl/gsdl/service/
39 /home/say1/java/cvs2cl.pl
40
41clean :
42 rm -f log.file.*
43 rm -f knownIORs.properties
44 (cd gnu/getopt && $(MAKE) clean)
45 (cd org/nzdl/gsdl && $(MAKE) clean)
46 rm -rf docs
47 rm -rf org/nzdl/gsdl/corba
48
49distclean : clean
50
51
52test : all
53 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SimpleClient -a
54
55many : all
56 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SearchAllCollections -q "marriage customs"
57 echo "This is causing a bunch of corba protocol errors for me. How about you?"
58
Note: See TracBrowser for help on using the repository browser.