.PHONY: docs clean all distclean test
# find the top-level directory of the java-client tree
# and add it to the java CLASSPATH
ifndef GSJCHOME
export GSJCHOME=$(PWD)
endif
ifdef CLASSPATH
export CLASSPATH += :$(GSJCHOME)
else
export CLASSPATH = $(GSJCHOME)
endif
GREENSTONEIDLFILE=/home/nzdl/gsdl/lib/corbaiface.idl
all : org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java
(cd gnu/getopt && $(MAKE) all)
(cd org/nzdl/gsdl && $(MAKE) all)
#remove -oldImplBase if using Java 1.3
org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java : corbaiface.idl
idlj -oldImplBase -verbose -fclient -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl
idlj -oldImplBase -verbose -fserver -pkgPrefix gsdlInterface org.nzdl.gsdl.corba corbaiface.idl
javac org/nzdl/gsdl/corba/gsdlInterface/*.java
# Generate documenmtation with Javadoc.
# This command may use arguments not found in all versions of javadoc
docs :
rm -rf docs
mkdir docs
javadoc -private -version -author -use -d docs -header "Documentation for the CORBA interface to the NZDL's Greenstone Digital Library software." -footer "This software is distributed under the GPL" -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
cp org/nzdl/gsdl/service/nzdl-service-package.png docs/org/nzdl/gsdl/service/
/home/say1/java/cvs2cl.pl
clean :
rm -f log.file.*
rm -f knownIORs.properties
(cd gnu/getopt && $(MAKE) clean)
(cd org/nzdl/gsdl && $(MAKE) clean)
rm -rf docs
rm -rf org/nzdl/gsdl/corba
distclean : clean
test : all
java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SimpleClient -a
many : all
java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SearchAllCollections -q "marriage customs"
echo "This is causing a bunch of corba protocol errors for me. How about you?"