--- projects/cms/source/server/Makefile 2000/12/13 18:40:16 1.9 +++ projects/cms/source/server/Makefile 2001/03/14 22:40:57 1.20 @@ -1,20 +1,20 @@ # Makefile for server -# $Id: Makefile,v 1.9 2000/12/13 18:40:16 tdb Exp $ +# $Id: Makefile,v 1.20 2001/03/14 22:40:57 tdb Exp $ include Config.inc all : build -idl : +genidl : cd idl && $(MAKE) idl -buildidl : idl +buildidl : genidl cd idl && $(MAKE) build -code : buildidl +code : genidl cd uk/ac/ukc/iscream && $(MAKE) all -build : code +build : buildidl code cd build && $(MAKE) package run : build @@ -26,9 +26,10 @@ clean : cd uk/ac/ukc/iscream && $(MAKE) clean rm -Rf $(BUILDCHECK) $(IDLCHECK) rm -Rf $(CVSBUILDTEMP) + rm -Rf doc doctemp distclean : clean - rm -f $(CLPATH) + cd $(BUILD) && rm -f $(CLPATH) rm -f Config.inc install : build @@ -44,14 +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) + $(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) -author -version -private $(PKGLIST) + rm -Rf doctemp + +buildutil : clean + cd uk/ac/ukc/iscream/util && $(MAKE) all + cd build && $(MAKE) packageutil + +createtable : + cd db && $(MAKE) create + +droptable : + cd db && $(MAKE) drop include $(MKINC)