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.22 by tdb, Mon Mar 26 21:45:28 2001 UTC vs.
Revision 1.35 by tdb, Sun Feb 16 20:35:59 2003 UTC

# Line 3 | Line 3
3  
4   include Config.inc
5  
6 < all : build
6 > .PHONY : all
7 > all : dist
8  
9 < genidl :
9 <        cd idl && $(MAKE) idl
9 > ### Code Building
10  
11 < buildidl : genidl
12 <        cd idl && $(MAKE) build
11 > .PHONY : build
12 > build : $(IDLCHECK)
13 >        cd uk/org/iscream/cms/server && $(MAKE) all
14 >        cp $(SOURCEROOT)/$(LICFILE) $(BUILD)
15 >        cd $(BUILD) && $(MAKE) package
16  
17 < code : genidl
15 <        cd uk/org/iscream && $(MAKE) all
17 > ### Source, Doc, & Changelog
18  
19 < build : buildidl code
20 <        cd build && $(MAKE) package
19 > .PHONY : src
20 > src : $(SRCCHECK)
21  
22 < run : build
23 <        cd build && ./run.sh
22 > .PHONY : mksrc
23 > mksrc :
24 >        if test ! -d "$(SRCDIR)"; then mkdir -p $(SRCDIR); fi
25 >        echo "CVS" > TAR_EXCLUDE_TMP
26 >        echo ".#*" >> TAR_EXCLUDE_TMP
27 >        echo "*.jar" >> TAR_EXCLUDE_TMP
28 >        echo ".done*" >> TAR_EXCLUDE_TMP
29 >        tar -cf - -X TAR_EXCLUDE_TMP $(SRCFILES) | ( cd $(SRCDIR) && tar -xf - )
30 >        rm -f TAR_EXCLUDE_TMP
31 >        @touch $(SRCCHECK)
32  
33 + .PHONY : javadoc
34 + javadoc : $(JAVADOCCHECK)
35 +
36 + .PHONY : mkjavadoc
37 + mkjavadoc : $(IDLCHECK)
38 +        if test ! -d "$(DOCDIR)"; then mkdir -p $(DOCDIR); fi
39 +        if test ! -d "$(DOCTMPDIR)"; then mkdir -p $(DOCTMPDIR); fi
40 +        cp -R $(SOURCEROOT)/uk $(DOCTMPDIR)
41 +        cp -R $(SOURCEROOT)/idl/uk $(DOCTMPDIR)
42 +        $(JAVADOCBIN) -d $(DOCDIR) -sourcepath $(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -linkoffline $(JDJAPI) $(JDJAPIC) -linkoffline $(JDPBAPI) $(JDPBAPIC) -linkoffline $(JDUAPI) $(JDUAPIC) $(PKGLIST)
43 +        rm -Rf $(DOCTMPDIR)
44 +        @touch $(JAVADOCCHECK)
45 +
46 + .PHONY : changelog
47 + changelog : $(CHANGELOG)
48 +
49 + .PHONY : mkchangelog
50 + mkchangelog :
51 +        if [ -d $(SOURCEROOT)/CVS ]; then \
52 +                $(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \
53 +        else \
54 +                echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \
55 +        fi
56 +
57 + ### Dist Making
58 +
59 + .PHONY : dist
60 + dist :
61 +        cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST)
62 +
63 + .PHONY : dist-bin
64 + dist-bin :
65 +        cd $(BUILD) && $(MAKE) dist-bin dest=$(DISTDEST)
66 +
67 + ### Code Cleaning
68 +
69 + .PHONY : clean
70   clean :
71          cd idl && $(MAKE) clean
72 <        cd build && $(MAKE) clean
73 <        cd uk/org/iscream && $(MAKE) clean
74 <        rm -Rf $(BUILDCHECK) $(IDLCHECK)
75 <        rm -Rf $(CVSBUILDTEMP)
29 <        rm -Rf $(DOCDIR) $(DOCTMPDIR)
72 >        cd $(BUILD) && $(MAKE) clean ver=$(VERSION)
73 >        cd uk/org/iscream/cms/server && $(MAKE) clean
74 >        rm -f $(MCOMPILECHECK) $(JAVADOCCHECK) $(SRCCHECK)
75 >        rm -Rf $(DOCTMPDIR)
76  
77 + .PHONY : distclean
78   distclean : clean
79          cd $(BUILD) && rm -f $(CLPATH)
80 +        rm -Rf $(APICACHE)
81          rm -f Config.inc
82  
83 < 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 "-------------------------------------------------------"
83 > ### Database
84  
85 < 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 < 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 < buildutil : clean
72 <        cd uk/org/iscream/util && $(MAKE) all
73 <        cd build && $(MAKE) packageutil
74 <
85 > .PHONY : createtable
86   createtable :
87          cd db && $(MAKE) create
88  
89 + .PHONY : droptable
90   droptable :
91          cd db && $(MAKE) drop
92 +
93 + ### Install
94 +
95 + .PHONY : install
96 + install : $(MCOMPILECHECK) $(JAVADOCCHECK) $(CHANGELOG)
97 +        @echo "-------------------------------------------------------"
98 +        @echo "Installing to $(INSTALLPREFIX)"
99 +        @echo "  copying $(PACKAGE) to $(INSTALLPREFIX)"
100 +        @mkdir -p $(INSTALLPREFIX)
101 +        @cp $(BUILD)/$(PACKAGE) $(INSTALLPREFIX)
102 +        @echo "  copying libs to $(INSTALLPREFIX)/lib"
103 +        @mkdir -p $(INSTALLPREFIX)/lib
104 +        @cp $(LIBDIR)/*.jar $(INSTALLPREFIX)/lib
105 +        @echo "  copying etc to $(INSTALLPREFIX)/etc"
106 +        @mkdir -p $(INSTALLPREFIX)/etc
107 +        @cp $(BUILD)/etc/default.properties $(INSTALLPREFIX)/etc
108 +        @cp $(BUILD)/etc/*.conf $(INSTALLPREFIX)/etc
109 +        @echo "  copying scripts to $(INSTALLPREFIX)"
110 +        @cp $(BUILD)/run.sh $(INSTALLPREFIX)
111 +        @cp $(BUILD)/run.bat $(INSTALLPREFIX)
112 +        @echo "  copying documention to $(INSTALLPREFIX)/doc"
113 +        @cp -R $(BUILD)/doc $(INSTALLPREFIX)
114 +        @echo "  copying text information files to $(INSTALLPREFIX)"
115 +        @cp $(BUILD)/COPYING $(CHANGELOG) $(INSTALLPREFIX)
116 +        @echo "Completed install to $(INSTALLPREFIX)"
117 +        @echo "-------------------------------------------------------"
118 +
119 + ### Other
120 +
121 + .PHONY : run
122 + run : $(MCOMPILECHECK)
123 +        cd $(BUILD) && ./run.sh
124 +
125 + ### Global Include
126  
127   include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines