--- projects/cms/source/server/Makefile 2000/11/14 02:41:04 1.1 +++ projects/cms/source/server/Makefile 2001/03/14 22:01:08 1.19 @@ -1,21 +1,75 @@ # Makefile for server -# $Id: Makefile,v 1.1 2000/11/14 02:41:04 tdb Exp $ +# $Id: Makefile,v 1.19 2001/03/14 22:01:08 tdb Exp $ -all : idl core filter +include Config.inc -core : - cd CORE && $(MAKE) +all : build -filter : - cd Filter && $(MAKE) +genidl : + cd idl && $(MAKE) idl -idl : iscream.idl - idl iscream.idl - @touch .madeidl +buildidl : genidl + cd idl && $(MAKE) build +code : genidl + cd uk/ac/ukc/iscream && $(MAKE) all + +build : buildidl code + cd build && $(MAKE) package + +run : build + cd build && ./run.sh + clean : - rm -Rf uk - rm -f .madeidl - cd CORE && $(MAKE) clean - cd Filter && $(MAKE) clean + cd idl && $(MAKE) clean + cd build && $(MAKE) clean + cd uk/ac/ukc/iscream && $(MAKE) clean + rm -Rf $(BUILDCHECK) $(IDLCHECK) + rm -Rf $(CVSBUILDTEMP) + rm -Rf doc doctemp +distclean : clean + cd $(BUILD) && rm -f $(CLPATH) + rm -f Config.inc + +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 "-------------------------------------------------------" + +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) -author -version -private $(PKGLIST) + rm -Rf doctemp + +buildutil : clean + cd uk/ac/ukc/iscream/util && $(MAKE) all + cd build && $(MAKE) packageutil + +include $(MKINC)