ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/Makefile
Revision: 1.24
Committed: Sat Feb 9 17:04:33 2002 UTC (22 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.23: +2 -2 lines
Log Message:
Improved the javadoc generation in the Makefile setup. Now matches the ANT
javadoc output. Also added links to external javadoc (such as pircbot) to
make the pages more complete.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for server
2 tdb 1.24 # $Id: Makefile,v 1.23 2001/05/29 17:02:24 tdb Exp $
3 tdb 1.1
4 tdb 1.8 include Config.inc
5 tdb 1.1
6 tdb 1.8 all : build
7 tdb 1.1
8 tdb 1.11 genidl :
9 tdb 1.8 cd idl && $(MAKE) idl
10 tdb 1.1
11 tdb 1.11 buildidl : genidl
12 tdb 1.8 cd idl && $(MAKE) build
13    
14 tdb 1.13 code : genidl
15 tdb 1.23 cd uk/org/iscream/cms/server && $(MAKE) all
16 tdb 1.1
17 tdb 1.13 build : buildidl code
18 tdb 1.8 cd build && $(MAKE) package
19    
20     run : build
21 tdb 1.9 cd build && ./run.sh
22 tdb 1.8
23 tdb 1.1 clean :
24 tdb 1.3 cd idl && $(MAKE) clean
25 tdb 1.8 cd build && $(MAKE) clean
26 tdb 1.23 cd uk/org/iscream/cms/server && $(MAKE) clean
27 tdb 1.8 rm -Rf $(BUILDCHECK) $(IDLCHECK)
28     rm -Rf $(CVSBUILDTEMP)
29 tdb 1.22 rm -Rf $(DOCDIR) $(DOCTMPDIR)
30 tdb 1.1
31 tdb 1.8 distclean : clean
32 tdb 1.10 cd $(BUILD) && rm -f $(CLPATH)
33 tdb 1.8 rm -f Config.inc
34    
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 tdb 1.15 @echo " copying scripts to $(INSTALL)"
49     cp $(BUILD)/run.sh $(INSTALL)
50     cp $(BUILD)/run.bat $(INSTALL)
51 tdb 1.8 @echo "Completed install to $(INSTALL)"
52     @echo "-------------------------------------------------------"
53    
54     cvsbuild :
55 tdb 1.18 $(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE)
56 tdb 1.8 cd $(CVSBUILDTEMP) && ./configure
57 tdb 1.14 cd $(CVSBUILDTEMP) && $(MAKE) buildutil
58 tdb 1.8 cd $(CVSBUILDTEMP) && $(MAKE) build
59     cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT)
60     cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT)
61 tdb 1.14 cp $(CVSBUILDTEMP)/build/$(UTILPACKAGE) $(BUILD)
62 tdb 1.11
63     javadoc : genidl
64     if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi
65     if test ! -d "$(DOCTMPDIR)"; then mkdir $(DOCTMPDIR); fi
66 tdb 1.19 cp -R $(SOURCEROOT)/uk $(SOURCEROOT)/$(DOCTMPDIR)
67     cp -R $(SOURCEROOT)/idl/uk $(SOURCEROOT)/$(DOCTMPDIR)
68 tdb 1.24 javadoc -d $(SOURCEROOT)/$(DOCDIR) -sourcepath $(SOURCEROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -link $(JDJAPI) -link $(JDPBAPI) $(PKGLIST)
69 tdb 1.11 rm -Rf doctemp
70 tdb 1.13
71 tdb 1.17 buildutil : clean
72 tdb 1.23 cd uk/org/iscream/cms/server/util && $(MAKE) all
73 tdb 1.13 cd build && $(MAKE) packageutil
74 tdb 1.20
75     createtable :
76     cd db && $(MAKE) create
77    
78     droptable :
79     cd db && $(MAKE) drop
80 tdb 1.5
81 tdb 1.8 include $(MKINC)