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 |
|
---|
8 | ifndef GSJCHOME
|
---|
9 | export GSJCHOME=$(PWD)
|
---|
10 | endif
|
---|
11 |
|
---|
12 | ifdef CLASSPATH
|
---|
13 | export CLASSPATH += :$(GSJCHOME)
|
---|
14 | else
|
---|
15 | export CLASSPATH = $(GSJCHOME)
|
---|
16 | endif
|
---|
17 |
|
---|
18 |
|
---|
19 | GREENSTONEIDLFILE=/home/nzdl/gsdl/lib/corbaiface.idl
|
---|
20 |
|
---|
21 | all : 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
|
---|
26 | org/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 |
|
---|
35 | docs :
|
---|
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 |
|
---|
42 | clean :
|
---|
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 |
|
---|
50 | distclean : clean
|
---|
51 |
|
---|
52 |
|
---|
53 | test : all
|
---|
54 | java -classpath "$(CLASSPATH)" org.nzdl.gsdl.SimpleClient -a
|
---|
55 |
|
---|
56 | many : 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 |
|
---|