--- projects/cms/source/server/Makefile 2000/12/11 17:20:44 1.7 +++ projects/cms/source/server/Makefile 2001/03/14 23:25:17 1.21 @@ -1,43 +1,81 @@ # Makefile for server -# $Id: Makefile,v 1.7 2000/12/11 17:20:44 ajm Exp $ +# $Id: Makefile,v 1.21 2001/03/14 23:25:17 tdb Exp $ -IDL = idl/.madeidl +include Config.inc -all : idl code +all : build -idl : $(IDL) -$(IDL) : idl/iscream.idl - cd idl && $(MAKE) all +genidl : + cd idl && $(MAKE) idl -code : - cd uk/ac/ukc/iscream && $(MAKE) all +buildidl : genidl + cd idl && $(MAKE) build +code : genidl + cd uk/org/iscream && $(MAKE) all + +build : buildidl code + cd build && $(MAKE) package + +run : build + cd build && ./run.sh + clean : cd idl && $(MAKE) clean - cd uk/ac/ukc/iscream && $(MAKE) clean + cd build && $(MAKE) clean + cd uk/org/iscream && $(MAKE) clean + rm -Rf $(BUILDCHECK) $(IDLCHECK) + rm -Rf $(CVSBUILDTEMP) + rm -Rf doc doctemp -update : - cvs -q -d /usr/local/proj/co600_10/cvs update +distclean : clean + cd $(BUILD) && rm -f $(CLPATH) + rm -f Config.inc -runclientinterface : - cd uk/ac/ukc/iscream/clientinterface && $(MAKE) all - java uk.ac.ukc.iscream.clientinterface.ClientInterfaceMain +install : build + @echo "-------------------------------------------------------" + @echo "Installing to $(INSTALL)" + @echo " copying $(PACKAGE) to $(INSTALL)" + mkdir -p $(INSTALL) + cp $(BUILD)/$(PACKAGE) $(INSTALL) + @echo " copying libs to $(INSTALL)/lib" + mkdir -p $(INSTALL)/lib + cp $(LIBDIR)/*.jar $(INSTALL)/lib + @echo " copying etc to $(INSTALL)/etc" + 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 "-------------------------------------------------------" -run : all - java uk.ac.ukc.iscream.componentmanager.ComponentManager -l etc/default.properties +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) -rundbinterface : - cd uk/ac/ukc/iscream/dbinterface && $(MAKE) all - java uk.ac.ukc.iscream.dbinterface.DBInterfaceMain +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 -runfiltermanager : - cd uk/ac/ukc/iscream/filtermanager && $(MAKE) all - java uk.ac.ukc.iscream.filtermanager.FilterManager +buildutil : clean + cd uk/org/iscream/util && $(MAKE) all + cd build && $(MAKE) packageutil -runrootfilter : - cd uk/ac/ukc/iscream/rootfilter && $(MAKE) all - java uk.ac.ukc.iscream.rootfilter.RootFilterMain +createtable : + cd db && $(MAKE) create -runfilter : - cd uk/ac/ukc/iscream/filter && $(MAKE) all - java uk.ac.ukc.iscream.filter.FilterMain $(NAME) +droptable : + cd db && $(MAKE) drop + +include $(MKINC)