--- projects/cms/source/server/Makefile 2000/12/12 02:45:54 1.6.2.5 +++ projects/cms/source/server/Makefile 2001/01/24 02:53:27 1.15 @@ -1,30 +1,75 @@ # Makefile for server -# $Id: Makefile,v 1.6.2.5 2000/12/12 02:45:54 tdb Exp $ +# $Id: Makefile,v 1.15 2001/01/24 02:53:27 tdb Exp $ include Config.inc -all : buildidl code build +all : build -idl : $(IDL) -$(IDL) : idl/iscream.idl +genidl : cd idl && $(MAKE) idl -buildidl : $(IDL) idl +buildidl : genidl cd idl && $(MAKE) build -code : buildidl +code : genidl cd uk/ac/ukc/iscream && $(MAKE) all +build : buildidl code + cd build && $(MAKE) package + +run : build + cd build && ./run.sh + 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 -run : build - cd build && java -jar iscream.jar +distclean : clean + cd $(BUILD) && rm -f $(CLPATH) + rm -f Config.inc -build : code - cd build && $(MAKE) package +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 $(SERVERROOT)/uk $(SERVERROOT)/$(DOCTMPDIR) + cp -R $(SERVERROOT)/idl/uk $(SERVERROOT)/$(DOCTMPDIR) + javadoc -d $(SERVERROOT)/$(DOCDIR) -sourcepath $(SERVERROOT)/$(DOCTMPDIR) -classpath $(JCCLASSPATH) -author -version -private $(PKGLIST) + rm -Rf doctemp + +buildutil : genidl + cd uk/ac/ukc/iscream/util && $(MAKE) all + cd build && $(MAKE) packageutil include $(MKINC)