--- projects/cms/source/server/Makefile 2000/12/12 20:15:14 1.6.2.7 +++ projects/cms/source/server/Makefile 2001/05/29 17:02:24 1.23 @@ -1,31 +1,37 @@ # Makefile for server -# $Id: Makefile,v 1.6.2.7 2000/12/12 20:15:14 tdb Exp $ +# $Id: Makefile,v 1.23 2001/05/29 17:02:24 tdb Exp $ include Config.inc all : build -idl : +genidl : cd idl && $(MAKE) idl -buildidl : idl +buildidl : genidl cd idl && $(MAKE) build -code : buildidl - cd uk/ac/ukc/iscream && $(MAKE) all +code : genidl + cd uk/org/iscream/cms/server && $(MAKE) all -build : code +build : buildidl code cd build && $(MAKE) package run : build - cd build && java -jar iscream.jar + cd build && ./run.sh clean : cd idl && $(MAKE) clean cd build && $(MAKE) clean - cd uk/ac/ukc/iscream && $(MAKE) clean + cd uk/org/iscream/cms/server && $(MAKE) clean rm -Rf $(BUILDCHECK) $(IDLCHECK) + rm -Rf $(CVSBUILDTEMP) + rm -Rf $(DOCDIR) $(DOCTMPDIR) +distclean : clean + cd $(BUILD) && rm -f $(CLPATH) + rm -f Config.inc + install : build @echo "-------------------------------------------------------" @echo "Installing to $(INSTALL)" @@ -39,7 +45,37 @@ install : build mkdir -p $(INSTALL)/etc cp $(BUILD)/etc/default.properties $(INSTALL)/etc cp $(BUILD)/etc/*.conf $(INSTALL)/etc + @echo " copying scripts to $(INSTALL)" + cp $(BUILD)/run.sh $(INSTALL) + cp $(BUILD)/run.bat $(INSTALL) @echo "Completed install to $(INSTALL)" @echo "-------------------------------------------------------" + +cvsbuild : + $(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE) + cd $(CVSBUILDTEMP) && ./configure + cd $(CVSBUILDTEMP) && $(MAKE) buildutil + cd $(CVSBUILDTEMP) && $(MAKE) build + cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT) + cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT) + cp $(CVSBUILDTEMP)/build/$(UTILPACKAGE) $(BUILD) + +javadoc : genidl + if test ! -d "$(DOCDIR)"; then mkdir $(DOCDIR); fi + if test ! -d "$(DOCTMPDIR)"; then mkdir $(DOCTMPDIR); fi + cp -R $(SOURCEROOT)/uk $(SOURCEROOT)/$(DOCTMPDIR) + cp -R $(SOURCEROOT)/idl/uk $(SOURCEROOT)/$(DOCTMPDIR) + javadoc -d $(SOURCEROOT)/$(DOCDIR) -sourcepath $(SOURCEROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -windowtitle $(JDTITLE) -author -version -private -header $(JDHEADER) $(PKGLIST) + rm -Rf doctemp + +buildutil : clean + cd uk/org/iscream/cms/server/util && $(MAKE) all + cd build && $(MAKE) packageutil + +createtable : + cd db && $(MAKE) create + +droptable : + cd db && $(MAKE) drop include $(MKINC)