source: trunk/java-client/Makefile@ 2216

Last change on this file since 2216 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
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
[2101]25org/nzdl/gsdl/corba/gsdlInterface/corbaiface.java : corbaiface.idl
[2098]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
[2071]29
30
[2101]31# Generate documenmtation with Javadoc.
32# This command may use arguments not found in all versions of javadoc
[2071]33
[2101]34docs :
[2119]35 rm -rf docs
[2081]36 mkdir docs
[2155]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/
[2058]39
[2101]40clean :
[2157]41 rm -f log.file.*
42 rm -f knownIORs.properties
[2109]43 (cd gnu/getopt && $(MAKE) clean)
44 (cd org/nzdl/gsdl && $(MAKE) clean)
[2081]45 rm -rf docs
[2098]46 rm -rf org/nzdl/gsdl/corba
[2058]47
[2101]48distclean : clean
[2089]49
50
[2101]51test : all
[2109]52 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SimpleClient -a
[2089]53
[2101]54many : all
[2109]55 java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SearchAllCollections -q "marriage customs"
[2104]56 echo "This is causing a bunch of corba protocol errors for me. How about you?"
[2109]57
Note: See TracBrowser for help on using the repository browser.