1 |
tdb |
1.1 |
# Makefile for corbaservices |
2 |
tdb |
1.12 |
# $Id: Makefile,v 1.11 2003/02/16 20:35:56 tdb Exp $ |
3 |
tdb |
1.1 |
|
4 |
|
|
include Config.inc |
5 |
|
|
|
6 |
tdb |
1.8 |
.PHONY : all |
7 |
|
|
all : dist |
8 |
tdb |
1.1 |
|
9 |
tdb |
1.8 |
### Code Building |
10 |
|
|
|
11 |
|
|
.PHONY : build |
12 |
|
|
build : |
13 |
tdb |
1.5 |
cd uk/org/iscream/cms/corbaservices && $(MAKE) all |
14 |
tdb |
1.11 |
cp $(SOURCEROOT)/$(LICFILE) $(BUILD) |
15 |
tdb |
1.8 |
cd $(BUILD) && $(MAKE) package |
16 |
|
|
|
17 |
|
|
### Source, Doc, & Changelog |
18 |
tdb |
1.1 |
|
19 |
tdb |
1.8 |
.PHONY : src |
20 |
|
|
src : $(SRCCHECK) |
21 |
|
|
|
22 |
|
|
.PHONY : mksrc |
23 |
|
|
mksrc : |
24 |
|
|
if test ! -d "$(SRCDIR)"; then mkdir -p $(SRCDIR); fi |
25 |
|
|
echo "CVS" > TAR_EXCLUDE_TMP |
26 |
|
|
echo ".#*" >> TAR_EXCLUDE_TMP |
27 |
|
|
echo "*.jar" >> TAR_EXCLUDE_TMP |
28 |
|
|
echo ".done*" >> TAR_EXCLUDE_TMP |
29 |
|
|
tar -cf - -X TAR_EXCLUDE_TMP $(SRCFILES) | ( cd $(SRCDIR) && tar -xf - ) |
30 |
|
|
rm -f TAR_EXCLUDE_TMP |
31 |
|
|
@touch $(SRCCHECK) |
32 |
|
|
|
33 |
|
|
.PHONY : javadoc |
34 |
|
|
javadoc : $(JAVADOCCHECK) |
35 |
|
|
|
36 |
|
|
.PHONY : mkjavadoc |
37 |
tdb |
1.9 |
mkjavadoc : |
38 |
tdb |
1.8 |
if test ! -d "$(DOCDIR)"; then mkdir -p $(DOCDIR); fi |
39 |
|
|
$(JAVADOCBIN) -d $(DOCDIR) -sourcepath $(SOURCEROOT) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -linkoffline $(JDJAPI) $(JDJAPIC) $(PKGLIST) |
40 |
|
|
@touch $(JAVADOCCHECK) |
41 |
|
|
|
42 |
|
|
.PHONY : changelog |
43 |
|
|
changelog : $(CHANGELOG) |
44 |
|
|
|
45 |
|
|
.PHONY : mkchangelog |
46 |
|
|
mkchangelog : |
47 |
|
|
if [ -d $(SOURCEROOT)/CVS ]; then \ |
48 |
|
|
$(CVS2CL) $(CVS2CLFLAGS) > $(CHANGELOG); \ |
49 |
|
|
else \ |
50 |
|
|
echo "Can't generate ChangeLog from non-checked out copy." > $(CHANGELOG); \ |
51 |
|
|
fi |
52 |
|
|
|
53 |
|
|
### Dist Making |
54 |
|
|
|
55 |
|
|
.PHONY : dist |
56 |
|
|
dist : |
57 |
|
|
cd $(BUILD) && $(MAKE) dist dest=$(DISTDEST) |
58 |
|
|
|
59 |
|
|
.PHONY : dist-bin |
60 |
|
|
dist-bin : |
61 |
|
|
cd $(BUILD) && $(MAKE) dist-bin dest=$(DISTDEST) |
62 |
tdb |
1.1 |
|
63 |
tdb |
1.8 |
### Code Cleaning |
64 |
tdb |
1.1 |
|
65 |
tdb |
1.8 |
.PHONY : clean |
66 |
tdb |
1.1 |
clean : |
67 |
tdb |
1.8 |
cd $(BUILD) && $(MAKE) clean ver=$(VERSION) |
68 |
tdb |
1.5 |
cd uk/org/iscream/cms/corbaservices && $(MAKE) clean |
69 |
tdb |
1.8 |
rm -f $(MCOMPILECHECK) $(JAVADOCCHECK) $(SRCCHECK) |
70 |
tdb |
1.1 |
|
71 |
tdb |
1.8 |
.PHONY : distclean |
72 |
tdb |
1.1 |
distclean : clean |
73 |
|
|
cd $(BUILD) && rm -f $(CLPATH) |
74 |
tdb |
1.8 |
rm -Rf $(APICACHE) |
75 |
tdb |
1.1 |
rm -f Config.inc |
76 |
|
|
|
77 |
tdb |
1.8 |
### Install |
78 |
|
|
|
79 |
|
|
.PHONY : install |
80 |
|
|
install : $(MCOMPILECHECK) $(JAVADOCCHECK) $(CHANGELOG) |
81 |
tdb |
1.1 |
@echo "-------------------------------------------------------" |
82 |
tdb |
1.8 |
@echo "Installing to $(INSTALLPREFIX)" |
83 |
|
|
@echo " copying $(PACKAGE) to $(INSTALLPREFIX)" |
84 |
|
|
@mkdir -p $(INSTALLPREFIX) |
85 |
|
|
@cp $(BUILD)/$(PACKAGE) $(INSTALLPREFIX) |
86 |
|
|
@echo " copying libs to $(INSTALLPREFIX)/lib" |
87 |
|
|
@mkdir -p $(INSTALLPREFIX)/lib |
88 |
|
|
@cp $(LIBDIR)/*.jar $(INSTALLPREFIX)/lib |
89 |
|
|
@echo " copying etc to $(INSTALLPREFIX)/etc" |
90 |
|
|
@mkdir -p $(INSTALLPREFIX)/etc |
91 |
|
|
@cp $(BUILD)/etc/*.conf $(INSTALLPREFIX)/etc |
92 |
tdb |
1.12 |
@cp $(BUILD)/etc/default.properties $(INSTALLPREFIX)/etc |
93 |
tdb |
1.8 |
@echo " copying scripts to $(INSTALLPREFIX)" |
94 |
|
|
@cp $(BUILD)/run.sh $(INSTALLPREFIX) |
95 |
|
|
@cp $(BUILD)/run.bat $(INSTALLPREFIX) |
96 |
|
|
@echo " copying documention to $(INSTALLPREFIX)/doc" |
97 |
|
|
@cp -R $(BUILD)/doc $(INSTALLPREFIX) |
98 |
tdb |
1.10 |
@echo " copying text information files to $(INSTALLPREFIX)" |
99 |
tdb |
1.8 |
@cp $(BUILD)/COPYING $(CHANGELOG) $(INSTALLPREFIX) |
100 |
tdb |
1.12 |
@echo " creating web directory in $(INSTALLPREFIX)" |
101 |
|
|
@mkdir -p $(INSTALLPREFIX)/web |
102 |
tdb |
1.8 |
@echo "Completed install to $(INSTALLPREFIX)" |
103 |
tdb |
1.1 |
@echo "-------------------------------------------------------" |
104 |
|
|
|
105 |
tdb |
1.8 |
### Other |
106 |
|
|
|
107 |
|
|
.PHONY : run |
108 |
|
|
run : $(MCOMPILECHECK) |
109 |
|
|
cd $(BUILD) && ./run.sh |
110 |
|
|
|
111 |
|
|
### Global Include |
112 |
tdb |
1.1 |
|
113 |
|
|
include $(MKINC) |