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/ac/ukc/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/ac/ukc/iscream && $(MAKE) clean |
72 |
< |
rm -Rf $(BUILDCHECK) $(IDLCHECK) |
73 |
< |
rm -Rf $(CVSBUILDTEMP) |
29 |
< |
rm -Rf doc doctemp |
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)" |
106 |
|
mkdir -p $(INSTALL)/etc |
107 |
|
cp $(BUILD)/etc/default.properties $(INSTALL)/etc |
108 |
|
cp $(BUILD)/etc/*.conf $(INSTALL)/etc |
109 |
+ |
@echo " copying scripts to $(INSTALL)" |
110 |
+ |
cp $(BUILD)/run.sh $(INSTALL) |
111 |
+ |
cp $(BUILD)/run.bat $(INSTALL) |
112 |
|
@echo "Completed install to $(INSTALL)" |
113 |
|
@echo "-------------------------------------------------------" |
114 |
|
|
115 |
< |
cvsbuild : |
52 |
< |
cvs -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE) |
53 |
< |
cd $(CVSBUILDTEMP) && ./configure |
54 |
< |
cd $(CVSBUILDTEMP) && $(MAKE) buildutil |
55 |
< |
cd $(CVSBUILDTEMP) && $(MAKE) build |
56 |
< |
cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
57 |
< |
cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
58 |
< |
cp $(CVSBUILDTEMP)/build/$(UTILPACKAGE) $(BUILD) |
115 |
> |
### Other |
116 |
|
|
117 |
< |
javadoc : genidl |
118 |
< |
if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi |
62 |
< |
if test ! -d "$(DOCTMPDIR)"; then mkdir $(DOCTMPDIR); fi |
63 |
< |
cp -R $(SERVERROOT)/uk $(SERVERROOT)/$(DOCTMPDIR) |
64 |
< |
cp -R $(SERVERROOT)/idl/uk $(SERVERROOT)/$(DOCTMPDIR) |
65 |
< |
javadoc -d $(SERVERROOT)/$(DOCDIR) -sourcepath $(SERVERROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -author -version -private $(PKGLIST) |
66 |
< |
rm -Rf doctemp |
117 |
> |
run : build |
118 |
> |
cd $(BUILD) && ./run.sh |
119 |
|
|
120 |
< |
buildutil : genidl |
69 |
< |
cd uk/ac/ukc/iscream/util && $(MAKE) all |
70 |
< |
cd build && $(MAKE) packageutil |
120 |
> |
### Global Include |
121 |
|
|
122 |
|
include $(MKINC) |