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.15 by tdb, Wed Jan 24 02:53:27 2001 UTC vs.
Revision 1.25 by tdb, Fri Jun 7 16:12:47 2002 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines