source: other-projects/gs2-java-client/trunk/Makefile@ 28825

Last change on this file since 28825 was 3091, checked in by kjdon, 22 years ago

last commit broke the Makefile for Java 1.3 - added comment on how to fix it.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 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
25#remove -oldImplBase if using Java 1.3
26org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java : corbaiface.idl
27 idlj -oldImplBase -verbose -fclient -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl
28 idlj -oldImplBase -verbose -fserver -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl
29 javac org/nzdl/gsdl/corba/gsdlInterface/*.java
30
31
32# Generate documenmtation with Javadoc.
33# This command may use arguments not found in all versions of javadoc
34
35docs :
36 rm -rf docs
37 mkdir docs
38 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
39 cp org/nzdl/gsdl/service/nzdl-service-package.png docs/org/nzdl/gsdl/service/
40 /home/say1/java/cvs2cl.pl
41
42clean :
43 rm -f log.file.*
44 rm -f knownIORs.properties
45 (cd gnu/getopt && $(MAKE) clean)
46 (cd org/nzdl/gsdl && $(MAKE) clean)
47 rm -rf docs
48 rm -rf org/nzdl/gsdl/corba
49
50distclean : clean
51
52
53test : all
54 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SimpleClient -a
55
56many : all
57 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SearchAllCollections -q "marriage customs"
58 echo "This is causing a bunch of corba protocol errors for me. How about you?"
59
Note: See TracBrowser for help on using the repository browser.