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.26 by tdb, Sun Jan 26 14:02:52 2003 UTC

# Line 3 | Line 3
3  
4   include Config.inc
5  
6 < all : build
6 > all : dist
7  
8 < genidl :
8 > ### Code Building
9 >
10 > genidl : $(IDLCHECK)
11 > $(IDLCHECK) :
12          cd idl && $(MAKE) idl
13  
14   buildidl : genidl
15          cd idl && $(MAKE) build
16  
17 < code : genidl
18 <        cd uk/org/iscream && $(MAKE) all
17 > build : buildidl
18 >        cd uk/org/iscream/cms/server && $(MAKE) all
19 >        cd $(BUILD) && $(MAKE) package
20  
21 < build : buildidl code
18 <        cd build && $(MAKE) package
21 > ### Source, Doc, & Changelog
22  
23 < run : build
24 <        cd build && ./run.sh
23 > src : $(SRCCHECK)
24 > $(SRCCHECK) :
25 >        if test ! -d "$(SRCDIR)"; then mkdir -p $(SRCDIR); fi
26 >        echo "CVS" > TAR_EXCLUDE_TMP
27 >        echo ".#*" >> TAR_EXCLUDE_TMP
28 >        tar -cf - -X TAR_EXCLUDE_TMP $(SRCFILES) | ( cd $(SRCDIR) && tar -xf - )
29 >        rm -f TAR_EXCLUDE_TMP
30 >        @touch $(SRCCHECK)
31  
32 + javadoc : $(JAVADOCCHECK)
33 + $(JAVADOCCHECK) : $(IDLCHECK)
34 +        if test ! -d "$(DOCDIR)"; then mkdir -p $(DOCDIR); fi
35 +        if test ! -d "$(DOCTMPDIR)"; then mkdir -p $(DOCTMPDIR); fi
36 +        cp -R $(SOURCEROOT)/uk $(DOCTMPDIR)
37 +        cp -R $(SOURCEROOT)/idl/uk $(DOCTMPDIR)
38 +        $(JAVADOCBIN) -d $(DOCDIR) -sourcepath $(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -linkoffline $(JDJAPI) $(JDJAPIC) -linkoffline $(JDPBAPI) $(JDPBAPIC) $(PKGLIST)
39 +        rm -Rf $(DOCTMPDIR)
40 +        @touch $(JAVADOCCHECK)
41 +
42 + changelog : $(CHANGELOG)
43 + $(CHANGELOG) :
44 +        $(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG)
45 +
46 + ### Dist Making
47 +
48 + dist : build src javadoc changelog
49 +        cd $(BUILD) && $(MAKE) dist ver=$(VERSION) dest=$(DISTDEST)
50 +
51 + dist-bin : build changelog
52 +        cd $(BUILD) && $(MAKE) dist-bin ver=$(VERSION) dest=$(DISTDEST)
53 +
54 + ### CVS Magic :)
55 +
56 + cvs-dist :
57 +        $(CVS) -d $(CVSROOT) export -r $(CVSTAG) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE)
58 +        cd $(CVSBUILDTEMP) && ./configure
59 +        cd $(CVSBUILDTEMP) && $(MAKE) dist ver=$(VERSION) dest=$(DISTDEST)
60 +
61 + cvs-dist-bin :
62 +        $(CVS) -d $(CVSROOT) export -r $(CVSTAG) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE)
63 +        cd $(CVSBUILDTEMP) && ./configure
64 +        cd $(CVSBUILDTEMP) && $(MAKE) dist-bin ver=$(VERSION) dest=$(DISTDEST)
65 +
66 + ### Code Cleaning
67 +
68   clean :
69          cd idl && $(MAKE) clean
70 <        cd build && $(MAKE) clean
71 <        cd uk/org/iscream && $(MAKE) clean
72 <        rm -Rf $(BUILDCHECK) $(IDLCHECK)
73 <        rm -Rf $(CVSBUILDTEMP)
29 <        rm -Rf $(DOCDIR) $(DOCTMPDIR)
70 >        cd $(BUILD) && $(MAKE) clean ver=$(VERSION)
71 >        cd uk/org/iscream/cms/server && $(MAKE) clean
72 >        rm -f $(BUILDCHECK) $(IDLCHECK) $(JAVADOCCHECK) $(SRCCHECK)
73 >        rm -Rf $(CVSBUILDTEMP) $(DOCTMPDIR)
74  
75   distclean : clean
76          cd $(BUILD) && rm -f $(CLPATH)
77 +        rm -Rf $(APICACHE)
78          rm -f Config.inc
79  
80 + ### Util Package
81 +
82 + buildutil : clean
83 +        cd uk/org/iscream/cms/server/util && $(MAKE) all
84 +        cd $(BUILD) && $(MAKE) packageutil
85 +
86 + ### Database
87 +
88 + createtable :
89 +        cd db && $(MAKE) create
90 +
91 + droptable :
92 +        cd db && $(MAKE) drop
93 +
94 + ### Install
95 +
96   install : build
97          @echo "-------------------------------------------------------"
98          @echo "Installing to $(INSTALL)"
# Line 51 | Line 112 | install : build
112          @echo "Completed install to $(INSTALL)"
113          @echo "-------------------------------------------------------"
114  
115 < 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)
115 > ### Other
116  
117 < javadoc : genidl
118 <        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
117 > run : build
118 >        cd $(BUILD) && ./run.sh
119  
120 < buildutil : clean
72 <        cd uk/org/iscream/util && $(MAKE) all
73 <        cd build && $(MAKE) packageutil
74 <
75 < createtable :
76 <        cd db && $(MAKE) create
77 <
78 < droptable :
79 <        cd db && $(MAKE) drop
120 > ### Global Include
121  
122   include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines