source: trunk/java-client/Makefile@ 10856

Last change on this file since 10856 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
RevLine 
[2068]1
[2089]2
[2119]3.PHONY: docs clean all distclean test
4
[2089]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
[2068]19GREENSTONEIDLFILE=/home/nzdl/gsdl/lib/corbaiface.idl
20
[2101]21all : org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java
[2109]22 (cd gnu/getopt && $(MAKE) all)
23 (cd org/nzdl/gsdl && $(MAKE) all)
[2059]24
[3091]25#remove -oldImplBase if using Java 1.3
[2101]26org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java : corbaiface.idl
[3088]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
[2098]29 javac org/nzdl/gsdl/corba/gsdlInterface/*.java
[2071]30
31
[2101]32# Generate documenmtation with Javadoc.
33# This command may use arguments not found in all versions of javadoc
[2071]34
[2101]35docs :
[2119]36 rm -rf docs
[2081]37 mkdir docs
[2259]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
[2155]39 cp org/nzdl/gsdl/service/nzdl-service-package.png docs/org/nzdl/gsdl/service/
[2260]40 /home/say1/java/cvs2cl.pl
[2058]41
[2101]42clean :
[2157]43 rm -f log.file.*
44 rm -f knownIORs.properties
[2109]45 (cd gnu/getopt && $(MAKE) clean)
46 (cd org/nzdl/gsdl && $(MAKE) clean)
[2081]47 rm -rf docs
[2098]48 rm -rf org/nzdl/gsdl/corba
[2058]49
[2101]50distclean : clean
[2089]51
52
[2101]53test : all
[2109]54 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SimpleClient -a
[2089]55
[2101]56many : all
[2109]57 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SearchAllCollections -q "marriage customs"
[2104]58 echo "This is causing a bunch of corba protocol errors for me. How about you?"
[2109]59
Note: See TracBrowser for help on using the repository browser.