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

Comparing projects/cms/source/conient/Makefile (file contents):
Revision 1.8 by tdb, Tue May 29 17:41:28 2001 UTC vs.
Revision 1.11 by tdb, Tue Feb 11 22:38:28 2003 UTC

# Line 3 | Line 3
3  
4   include Config.inc
5  
6 < all : build
6 > .PHONY : all
7 > all : dist
8  
9 < code :
9 > ### Code Building
10 >
11 > .PHONY : build
12 > build :
13          cd uk/org/iscream/cms/conient && $(MAKE) all
14 +        cd $(BUILD) && $(MAKE) package
15  
16 < build : code
12 <        cd build && $(MAKE) package
16 > ### Source, Doc, & Changelog
17  
18 < run : build
19 <        cd build && ./run.sh
18 > .PHONY : src
19 > src : $(SRCCHECK)
20  
21 + .PHONY : mksrc
22 + mksrc :
23 +        if test ! -d "$(SRCDIR)"; then mkdir -p $(SRCDIR); fi
24 +        echo "CVS" > TAR_EXCLUDE_TMP
25 +        echo ".#*" >> TAR_EXCLUDE_TMP
26 +        echo "*.jar" >> TAR_EXCLUDE_TMP
27 +        echo ".done*" >> 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 + .PHONY : javadoc
33 + javadoc : $(JAVADOCCHECK)
34 +
35 + .PHONY : mkjavadoc
36 + mkjavadoc :
37 +        if test ! -d "$(DOCDIR)"; then mkdir -p $(DOCDIR); fi
38 +        $(JAVADOCBIN) -d $(DOCDIR) -sourcepath $(SOURCEROOT) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -linkoffline $(JDJAPI) $(JDJAPIC) -linkoffline $(JDUAPI) $(JDUAPIC) $(PKGLIST)
39 +        @touch $(JAVADOCCHECK)
40 +
41 + .PHONY : changelog
42 + changelog : $(CHANGELOG)
43 +
44 + .PHONY : mkchangelog
45 + mkchangelog :
46 +        if [ -d $(SOURCEROOT)/CVS ]; then \
47 +                $(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \
48 +        else \
49 +                echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \
50 +        fi
51 +
52 + ### Dist Making
53 +
54 + .PHONY : dist
55 + dist :
56 +        cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST)
57 +
58 + .PHONY : dist-bin
59 + dist-bin :
60 +        cd $(BUILD) && $(MAKE) dist-bin dest=$(DISTDEST)
61 +
62 + ### Code Cleaning
63 +
64 + .PHONY : clean
65   clean :
66 <        cd build && $(MAKE) clean
66 >        cd $(BUILD) && $(MAKE) clean ver=$(VERSION)
67          cd uk/org/iscream/cms/conient && $(MAKE) clean
68 <        rm -Rf $(BUILDCHECK)
21 <        rm -Rf $(CVSBUILDTEMP)
22 <        rm -Rf $(DOCDIR)
68 >        rm -f $(MCOMPILECHECK) $(JAVADOCCHECK) $(SRCCHECK)
69  
70 + .PHONY : distclean
71   distclean : clean
72          cd $(BUILD) && rm -f $(CLPATH)
73 +        rm -Rf $(APICACHE)
74          rm -f Config.inc
75  
76 < install : build
76 > ### Install
77 >
78 > .PHONY : install
79 > install : $(MCOMPILECHECK) $(JAVADOCCHECK) $(CHANGELOG)
80          @echo "-------------------------------------------------------"
81 <        @echo "Installing to $(INSTALL)"
82 <        @echo "  copying $(PACKAGE) to $(INSTALL)"
83 <        mkdir -p $(INSTALL)
84 <        cp $(BUILD)/$(PACKAGE) $(INSTALL)
85 <        @echo "  copying configuration to $(INSTALL)/etc
86 <        mkdir -p $(INSTALL)/etc
87 <        cp $(ETCDIR)/*.conf $(INSTALL)/etc
88 <        @echo "  copying resources to $(INSTALL)/resources
89 <        mkdir -p $(INSTALL)/resources
90 <        cp $(RESOURCESDIR)/*.gif $(INSTALL)/resources
91 <        @echo "  copying libs to $(INSTALL)/lib"
92 <        mkdir -p $(INSTALL)/lib
93 <        cp $(LIBDIR)/*.jar $(INSTALL)/lib
94 <        @echo "  copying scripts to $(INSTALL)"
95 <        cp $(BUILD)/run.sh $(INSTALL)
96 <        cp $(BUILD)/run.bat $(INSTALL)
97 <        @echo "Completed install to $(INSTALL)"
81 >        @echo "Installing to $(INSTALLPREFIX)"
82 >        @echo "  copying $(PACKAGE) to $(INSTALLPREFIX)"
83 >        @mkdir -p $(INSTALLPREFIX)
84 >        @cp $(BUILD)/$(PACKAGE) $(INSTALLPREFIX)
85 >        @echo "  copying libs to $(INSTALLPREFIX)/lib"
86 >        @mkdir -p $(INSTALLPREFIX)/lib
87 >        @cp $(LIBDIR)/*.jar $(INSTALLPREFIX)/lib
88 >        @echo "  copying etc to $(INSTALLPREFIX)/etc"
89 >        @mkdir -p $(INSTALLPREFIX)/etc
90 >        @cp $(BUILD)/etc/*.conf $(INSTALLPREFIX)/etc
91 >        @echo "  copying scripts to $(INSTALLPREFIX)"
92 >        @cp $(BUILD)/run.sh $(INSTALLPREFIX)
93 >        @cp $(BUILD)/run.bat $(INSTALLPREFIX)
94 >        @echo "  copying documention to $(INSTALLPREFIX)/doc"
95 >        @cp -R $(BUILD)/doc $(INSTALLPREFIX)
96 >        @echo "  copying text information files to $(INSTALLPREFIX"
97 >        @cp $(BUILD)/COPYING $(CHANGELOG) $(INSTALLPREFIX)
98 >        @echo "Completed install to $(INSTALLPREFIX)"
99          @echo "-------------------------------------------------------"
100  
101 < cvsbuild :
50 <        $(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE)
51 <        cd $(CVSBUILDTEMP) && ./configure
52 <        cd $(CVSBUILDTEMP) && $(MAKE) build
53 <        cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT)
54 <        cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT)
101 > ### Other
102  
103 < javadoc :
104 <        if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi
105 <        javadoc -d $(SOURCEROOT)/$(DOCDIR) -sourcepath $(SOURCEROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -header $(JDHEADER) $(PKGLIST)
103 > .PHONY : run
104 > run : $(MCOMPILECHECK)
105 >        cd $(BUILD) && ./run.sh
106 >
107 > ### Global Include
108  
109   include $(MKINC)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines