ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/Makefile
Revision: 1.34
Committed: Sun Feb 16 00:48:29 2003 UTC (21 years, 8 months ago) by tdb
Branch: MAIN
Changes since 1.33: +2 -2 lines
Log Message:
Missed a closing bracket in the install target.

File Contents

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