ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/Makefile
(Generate patch)

Comparing projects/cms/source/server/Makefile (file contents):
Revision 1.6.2.1 by tdb, Mon Dec 11 20:19:36 2000 UTC vs.
Revision 1.22 by tdb, Mon Mar 26 21:45:28 2001 UTC

# Line 1 | Line 1
1   # Makefile for server
2   # $Id$
3  
4 < IDL = idl/.madeidl
4 > include Config.inc
5  
6 < all : buildidl code
6 > all : build
7  
8 < idl : $(IDL)
9 < $(IDL) : idl/iscream.idl
8 > genidl :
9          cd idl && $(MAKE) idl
10  
11 < buildidl : $(IDL) idl
12 <        cd idl/uk/ac/ukc/iscream/clientinterface && javac -g:none -O -d ../../../../../../build *.java
14 <        cd idl/uk/ac/ukc/iscream/core && javac -g:none -O -d ../../../../../../build *.java
15 <        cd idl/uk/ac/ukc/iscream/filter && javac -g:none -O -d ../../../../../../build *.java
11 > buildidl : genidl
12 >        cd idl && $(MAKE) build
13  
14 < code :
15 <        cd uk/ac/ukc/iscream && $(MAKE) all
14 > code : genidl
15 >        cd uk/org/iscream && $(MAKE) all
16  
17 + build : buildidl code
18 +        cd build && $(MAKE) package
19 +
20 + run : build
21 +        cd build && ./run.sh
22 +
23   clean :
24          cd idl && $(MAKE) clean
22        cd uk/ac/ukc/iscream && $(MAKE) clean
25          cd build && $(MAKE) clean
26 +        cd uk/org/iscream && $(MAKE) clean
27 +        rm -Rf $(BUILDCHECK) $(IDLCHECK)
28 +        rm -Rf $(CVSBUILDTEMP)
29 +        rm -Rf $(DOCDIR) $(DOCTMPDIR)
30  
31 < update :
32 <        cvs -q -d /usr/local/proj/co600_10/cvs update
31 > distclean : clean
32 >        cd $(BUILD) && rm -f $(CLPATH)
33 >        rm -f Config.inc
34  
35 < runclientinterface :
36 <        cd uk/ac/ukc/iscream/clientinterface && $(MAKE) all
37 <        cd build && java uk.ac.ukc.iscream.clientinterface.ClientInterfaceMain
35 > install : build
36 >        @echo "-------------------------------------------------------"
37 >        @echo "Installing to $(INSTALL)"
38 >        @echo "  copying $(PACKAGE) to $(INSTALL)"
39 >        mkdir -p $(INSTALL)
40 >        cp $(BUILD)/$(PACKAGE) $(INSTALL)
41 >        @echo "  copying libs to $(INSTALL)/lib"
42 >        mkdir -p $(INSTALL)/lib
43 >        cp $(LIBDIR)/*.jar $(INSTALL)/lib
44 >        @echo "  copying etc to $(INSTALL)/etc"
45 >        mkdir -p $(INSTALL)/etc
46 >        cp $(BUILD)/etc/default.properties $(INSTALL)/etc
47 >        cp $(BUILD)/etc/*.conf $(INSTALL)/etc
48 >        @echo "  copying scripts to $(INSTALL)"
49 >        cp $(BUILD)/run.sh $(INSTALL)
50 >        cp $(BUILD)/run.bat $(INSTALL)
51 >        @echo "Completed install to $(INSTALL)"
52 >        @echo "-------------------------------------------------------"
53  
54 < runcore :
55 <        cd uk/ac/ukc/iscream/core && $(MAKE) all
56 <        cd build && java uk.ac.ukc.iscream.core.Core -l etc/default.properties
54 > cvsbuild :
55 >        $(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE)
56 >        cd $(CVSBUILDTEMP) && ./configure
57 >        cd $(CVSBUILDTEMP) && $(MAKE) buildutil
58 >        cd $(CVSBUILDTEMP) && $(MAKE) build
59 >        cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT)
60 >        cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT)
61 >        cp $(CVSBUILDTEMP)/build/$(UTILPACKAGE) $(BUILD)
62  
63 < rundbinterface :
64 <        cd uk/ac/ukc/iscream/dbinterface && $(MAKE) all
65 <        cd build && java uk.ac.ukc.iscream.dbinterface.DBInterfaceMain
63 > javadoc : genidl
64 >        if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi
65 >        if test ! -d "$(DOCTMPDIR)"; then mkdir $(DOCTMPDIR); fi
66 >        cp -R $(SOURCEROOT)/uk $(SOURCEROOT)/$(DOCTMPDIR)
67 >        cp -R $(SOURCEROOT)/idl/uk $(SOURCEROOT)/$(DOCTMPDIR)
68 >        javadoc -d $(SOURCEROOT)/$(DOCDIR) -sourcepath $(SOURCEROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -header $(JDHEADER) $(PKGLIST)
69 >        rm -Rf doctemp
70  
71 < runfiltermanager :
72 <        cd uk/ac/ukc/iscream/filtermanager && $(MAKE) all
73 <        cd build && java uk.ac.ukc.iscream.filtermanager.FilterManager
71 > buildutil : clean
72 >        cd uk/org/iscream/util && $(MAKE) all
73 >        cd build && $(MAKE) packageutil
74  
75 < runrootfilter :
76 <        cd uk/ac/ukc/iscream/rootfilter && $(MAKE) all
46 <        cd build &&java uk.ac.ukc.iscream.rootfilter.RootFilterMain
75 > createtable :
76 >        cd db && $(MAKE) create
77  
78 < runfilter :
79 <        cd uk/ac/ukc/iscream/filter && $(MAKE) all
50 <        cd build && java uk.ac.ukc.iscream.filter.FilterMain $(NAME)
78 > droptable :
79 >        cd db && $(MAKE) drop
80  
81 < build : all
53 <        cd build && $(MAKE) package
81 > include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines