3 |
|
|
4 |
|
include Config.inc |
5 |
|
|
6 |
< |
all : build |
6 |
> |
.PHONY : all |
7 |
> |
all : dist |
8 |
|
|
9 |
< |
genidl : |
9 |
< |
cd idl && $(MAKE) idl |
9 |
> |
### Code Building |
10 |
|
|
11 |
< |
buildidl : genidl |
12 |
< |
cd idl && $(MAKE) build |
11 |
> |
.PHONY : build |
12 |
> |
build : $(IDLCHECK) |
13 |
> |
cd uk/org/iscream/cms/server && $(MAKE) all |
14 |
> |
cd $(BUILD) && $(MAKE) package |
15 |
|
|
16 |
< |
code : genidl |
15 |
< |
cd uk/org/iscream && $(MAKE) all |
16 |
> |
### Source, Doc, & Changelog |
17 |
|
|
18 |
< |
build : buildidl code |
19 |
< |
cd build && $(MAKE) package |
18 |
> |
.PHONY : src |
19 |
> |
src : $(SRCCHECK) |
20 |
|
|
21 |
< |
run : build |
22 |
< |
cd build && ./run.sh |
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 |
> |
tar -cf - -X TAR_EXCLUDE_TMP $(SRCFILES) | ( cd $(SRCDIR) && tar -xf - ) |
27 |
> |
rm -f TAR_EXCLUDE_TMP |
28 |
> |
@touch $(SRCCHECK) |
29 |
|
|
30 |
+ |
.PHONY : javadoc |
31 |
+ |
javadoc : $(JAVADOCCHECK) |
32 |
+ |
|
33 |
+ |
.PHONY : mkjavadoc |
34 |
+ |
mkjavadoc : $(IDLCHECK) |
35 |
+ |
if test ! -d "$(DOCDIR)"; then mkdir -p $(DOCDIR); fi |
36 |
+ |
if test ! -d "$(DOCTMPDIR)"; then mkdir -p $(DOCTMPDIR); fi |
37 |
+ |
cp -R $(SOURCEROOT)/uk $(DOCTMPDIR) |
38 |
+ |
cp -R $(SOURCEROOT)/idl/uk $(DOCTMPDIR) |
39 |
+ |
$(JAVADOCBIN) -d $(DOCDIR) -sourcepath $(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -linkoffline $(JDJAPI) $(JDJAPIC) -linkoffline $(JDPBAPI) $(JDPBAPIC) $(PKGLIST) |
40 |
+ |
rm -Rf $(DOCTMPDIR) |
41 |
+ |
@touch $(JAVADOCCHECK) |
42 |
+ |
|
43 |
+ |
.PHONY : changelog |
44 |
+ |
changelog : $(CHANGELOG) |
45 |
+ |
|
46 |
+ |
.PHONY : mkchangelog |
47 |
+ |
mkchangelog : |
48 |
+ |
if [ -d $(SOURCEROOT)/CVS ]; then \ |
49 |
+ |
$(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \ |
50 |
+ |
else \ |
51 |
+ |
echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \ |
52 |
+ |
fi |
53 |
+ |
|
54 |
+ |
### Dist Making |
55 |
+ |
|
56 |
+ |
.PHONY : dist |
57 |
+ |
#dist : $(MCOMPILECHECK) $(SRCCHECK) $(JAVADOCCHECK) $(CHANGELOG) |
58 |
+ |
dist : |
59 |
+ |
cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST) |
60 |
+ |
|
61 |
+ |
.PHONY : dist-bin |
62 |
+ |
#dist-bin : $(MCOMPILECHECK) $(CHANGELOG) |
63 |
+ |
dist-bin : |
64 |
+ |
cd $(BUILD) && $(MAKE) dist-bin dest=$(DISTDEST) |
65 |
+ |
|
66 |
+ |
### Code Cleaning |
67 |
+ |
|
68 |
+ |
.PHONY : clean |
69 |
|
clean : |
70 |
|
cd idl && $(MAKE) clean |
71 |
< |
cd build && $(MAKE) clean |
72 |
< |
cd uk/org/iscream && $(MAKE) clean |
73 |
< |
rm -Rf $(BUILDCHECK) $(IDLCHECK) |
74 |
< |
rm -Rf $(CVSBUILDTEMP) |
29 |
< |
rm -Rf doc doctemp |
71 |
> |
cd $(BUILD) && $(MAKE) clean ver=$(VERSION) |
72 |
> |
cd uk/org/iscream/cms/server && $(MAKE) clean |
73 |
> |
rm -f $(MCOMPILECHECK) $(JAVADOCCHECK) $(SRCCHECK) |
74 |
> |
rm -Rf $(DOCTMPDIR) |
75 |
|
|
76 |
+ |
.PHONY : distclean |
77 |
|
distclean : clean |
78 |
|
cd $(BUILD) && rm -f $(CLPATH) |
79 |
+ |
rm -Rf $(APICACHE) |
80 |
|
rm -f Config.inc |
81 |
|
|
82 |
< |
install : build |
82 |
> |
### Util Package |
83 |
> |
|
84 |
> |
.PHONY : buildutil |
85 |
> |
buildutil : clean |
86 |
> |
cd uk/org/iscream/cms/server/util && $(MAKE) all |
87 |
> |
cd $(BUILD) && $(MAKE) packageutil |
88 |
> |
|
89 |
> |
### Database |
90 |
> |
|
91 |
> |
.PHONY : createtable |
92 |
> |
createtable : |
93 |
> |
cd db && $(MAKE) create |
94 |
> |
|
95 |
> |
.PHONY : droptable |
96 |
> |
droptable : |
97 |
> |
cd db && $(MAKE) drop |
98 |
> |
|
99 |
> |
### Install |
100 |
> |
|
101 |
> |
.PHONY : install |
102 |
> |
install : $(MCOMPILECHECK) |
103 |
|
@echo "-------------------------------------------------------" |
104 |
|
@echo "Installing to $(INSTALL)" |
105 |
|
@echo " copying $(PACKAGE) to $(INSTALL)" |
118 |
|
@echo "Completed install to $(INSTALL)" |
119 |
|
@echo "-------------------------------------------------------" |
120 |
|
|
121 |
< |
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) |
121 |
> |
### Other |
122 |
|
|
123 |
< |
javadoc : genidl |
124 |
< |
if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi |
125 |
< |
if test ! -d "$(DOCTMPDIR)"; then mkdir $(DOCTMPDIR); fi |
66 |
< |
cp -R $(SOURCEROOT)/uk $(SOURCEROOT)/$(DOCTMPDIR) |
67 |
< |
cp -R $(SOURCEROOT)/idl/uk $(SOURCEROOT)/$(DOCTMPDIR) |
68 |
< |
javadoc -d $(SOURCEROOT)/$(DOCDIR) -sourcepath $(SOURCEROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -author -version -private $(PKGLIST) |
69 |
< |
rm -Rf doctemp |
123 |
> |
.PHONY : run |
124 |
> |
run : $(MCOMPILECHECK) |
125 |
> |
cd $(BUILD) && ./run.sh |
126 |
|
|
127 |
< |
buildutil : clean |
72 |
< |
cd uk/org/iscream/util && $(MAKE) all |
73 |
< |
cd build && $(MAKE) packageutil |
74 |
< |
|
75 |
< |
createtable : |
76 |
< |
cd db && $(MAKE) create |
77 |
< |
|
78 |
< |
droptable : |
79 |
< |
cd db && $(MAKE) drop |
127 |
> |
### Global Include |
128 |
|
|
129 |
|
include $(MKINC) |