1 |
# Makefile for corbaservices |
2 |
# $Id: Makefile,v 1.6 2001/05/29 22:00:59 tdb1 Exp $ |
3 |
|
4 |
include Config.inc |
5 |
|
6 |
all : build |
7 |
|
8 |
code : |
9 |
cd uk/org/iscream/cms/corbaservices && $(MAKE) all |
10 |
|
11 |
build : code |
12 |
cd $(BUILD) && $(MAKE) package |
13 |
|
14 |
run : build |
15 |
cd $(BUILD) && ./run.sh |
16 |
|
17 |
clean : |
18 |
cd $(BUILD) && $(MAKE) clean |
19 |
cd uk/org/iscream/cms/corbaservices && $(MAKE) clean |
20 |
rm -Rf $(BUILDCHECK) |
21 |
rm -Rf $(CVSBUILDTEMP) |
22 |
rm -Rf $(DOCDIR) |
23 |
|
24 |
distclean : clean |
25 |
cd $(BUILD) && rm -f $(CLPATH) |
26 |
rm -f Config.inc |
27 |
|
28 |
install : build |
29 |
@echo "-------------------------------------------------------" |
30 |
@echo "Installing to $(INSTALL)" |
31 |
@echo " copying $(PACKAGE) to $(INSTALL)" |
32 |
mkdir -p $(INSTALL) |
33 |
cp $(BUILD)/$(PACKAGE) $(INSTALL) |
34 |
@echo " copying etc to $(INSTALL)/etc" |
35 |
mkdir -p $(INSTALL)/etc |
36 |
cp $(BUILD)/etc/*.conf $(INSTALL)/etc |
37 |
@echo " copying libs to $(INSTALL)/lib" |
38 |
mkdir -p $(INSTALL)/lib |
39 |
cp $(LIBDIR)/*.jar $(INSTALL)/lib |
40 |
@echo " copying scripts to $(INSTALL)" |
41 |
cp $(BUILD)/run.sh $(INSTALL) |
42 |
cp $(BUILD)/run.bat $(INSTALL) |
43 |
@echo "Completed install to $(INSTALL)" |
44 |
@echo "-------------------------------------------------------" |
45 |
|
46 |
cvsbuild : |
47 |
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
48 |
cd $(CVSBUILDTEMP) && ./configure |
49 |
cd $(CVSBUILDTEMP) && $(MAKE) build |
50 |
cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
51 |
cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
52 |
|
53 |
javadoc : |
54 |
if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi |
55 |
javadoc -d $(SOURCEROOT)/$(DOCDIR) -sourcepath $(SOURCEROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -use -header $(JDHEADER) -bottom $(JDBOTTOM) -link $(JDJAPI) $(PKGLIST) |
56 |
|
57 |
include $(MKINC) |