ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/Makefile
Revision: 1.29
Committed: Sun Feb 2 19:45:26 2003 UTC (21 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.28: +2 -2 lines
Log Message:
The GNU tar doesn't work quite like the BSD tar ;) This now excludes
all jar files from the src directory, which seems reasonable to me.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for server
2 tdb 1.29 # $Id: Makefile,v 1.28 2003/02/02 19:25:21 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.25 tar -cf - -X TAR_EXCLUDE_TMP $(SRCFILES) | ( cd $(SRCDIR) && tar -xf - )
28     rm -f TAR_EXCLUDE_TMP
29 tdb 1.26 @touch $(SRCCHECK)
30 tdb 1.25
31 tdb 1.27 .PHONY : javadoc
32 tdb 1.26 javadoc : $(JAVADOCCHECK)
33 tdb 1.27
34     .PHONY : mkjavadoc
35     mkjavadoc : $(IDLCHECK)
36 tdb 1.25 if test ! -d "$(DOCDIR)"; then mkdir -p $(DOCDIR); fi
37     if test ! -d "$(DOCTMPDIR)"; then mkdir -p $(DOCTMPDIR); fi
38     cp -R $(SOURCEROOT)/uk $(DOCTMPDIR)
39     cp -R $(SOURCEROOT)/idl/uk $(DOCTMPDIR)
40 tdb 1.26 $(JAVADOCBIN) -d $(DOCDIR) -sourcepath $(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -linkoffline $(JDJAPI) $(JDJAPIC) -linkoffline $(JDPBAPI) $(JDPBAPIC) $(PKGLIST)
41 tdb 1.25 rm -Rf $(DOCTMPDIR)
42 tdb 1.26 @touch $(JAVADOCCHECK)
43 tdb 1.1
44 tdb 1.27 .PHONY : changelog
45 tdb 1.26 changelog : $(CHANGELOG)
46 tdb 1.27
47     .PHONY : mkchangelog
48     mkchangelog :
49     if [ -d $(SOURCEROOT)/CVS ]; then \
50     $(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \
51     else \
52     echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \
53     fi
54 tdb 1.8
55 tdb 1.25 ### Dist Making
56    
57 tdb 1.27 .PHONY : dist
58     dist :
59     cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST)
60    
61     .PHONY : dist-bin
62     dist-bin :
63     cd $(BUILD) && $(MAKE) dist-bin dest=$(DISTDEST)
64 tdb 1.25
65     ### Code Cleaning
66 tdb 1.8
67 tdb 1.27 .PHONY : clean
68 tdb 1.1 clean :
69 tdb 1.3 cd idl && $(MAKE) clean
70 tdb 1.25 cd $(BUILD) && $(MAKE) clean ver=$(VERSION)
71 tdb 1.23 cd uk/org/iscream/cms/server && $(MAKE) clean
72 tdb 1.27 rm -f $(MCOMPILECHECK) $(JAVADOCCHECK) $(SRCCHECK)
73     rm -Rf $(DOCTMPDIR)
74 tdb 1.1
75 tdb 1.27 .PHONY : distclean
76 tdb 1.8 distclean : clean
77 tdb 1.10 cd $(BUILD) && rm -f $(CLPATH)
78 tdb 1.26 rm -Rf $(APICACHE)
79 tdb 1.8 rm -f Config.inc
80    
81 tdb 1.25 ### Util Package
82    
83 tdb 1.27 .PHONY : buildutil
84 tdb 1.25 buildutil : clean
85     cd uk/org/iscream/cms/server/util && $(MAKE) all
86     cd $(BUILD) && $(MAKE) packageutil
87    
88     ### Database
89    
90 tdb 1.27 .PHONY : createtable
91 tdb 1.25 createtable :
92     cd db && $(MAKE) create
93    
94 tdb 1.27 .PHONY : droptable
95 tdb 1.25 droptable :
96     cd db && $(MAKE) drop
97    
98     ### Install
99    
100 tdb 1.27 .PHONY : install
101     install : $(MCOMPILECHECK)
102 tdb 1.8 @echo "-------------------------------------------------------"
103     @echo "Installing to $(INSTALL)"
104     @echo " copying $(PACKAGE) to $(INSTALL)"
105     mkdir -p $(INSTALL)
106     cp $(BUILD)/$(PACKAGE) $(INSTALL)
107     @echo " copying libs to $(INSTALL)/lib"
108     mkdir -p $(INSTALL)/lib
109     cp $(LIBDIR)/*.jar $(INSTALL)/lib
110     @echo " copying etc to $(INSTALL)/etc"
111     mkdir -p $(INSTALL)/etc
112     cp $(BUILD)/etc/default.properties $(INSTALL)/etc
113     cp $(BUILD)/etc/*.conf $(INSTALL)/etc
114 tdb 1.15 @echo " copying scripts to $(INSTALL)"
115     cp $(BUILD)/run.sh $(INSTALL)
116     cp $(BUILD)/run.bat $(INSTALL)
117 tdb 1.8 @echo "Completed install to $(INSTALL)"
118     @echo "-------------------------------------------------------"
119    
120 tdb 1.25 ### Other
121 tdb 1.11
122 tdb 1.27 .PHONY : run
123     run : $(MCOMPILECHECK)
124 tdb 1.25 cd $(BUILD) && ./run.sh
125 tdb 1.13
126 tdb 1.25 ### Global Include
127 tdb 1.5
128 tdb 1.8 include $(MKINC)