--- projects/cms/source/server/Makefile 2000/12/12 20:15:14 1.6.2.7 +++ projects/cms/source/server/Makefile 2001/01/16 01:35:35 1.13 @@ -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.13 2001/01/16 01:35:35 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 - 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 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)" @@ -41,5 +47,24 @@ install : build cp $(BUILD)/etc/*.conf $(INSTALL)/etc @echo "Completed install to $(INSTALL)" @echo "-------------------------------------------------------" + +cvsbuild : + cvs -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSSERVERMODULE) + cd $(CVSBUILDTEMP) && ./configure + cd $(CVSBUILDTEMP) && $(MAKE) build + cp $(CVSBUILDTEMP)/build/$(TARGZFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(TARGZEXT) + cp $(CVSBUILDTEMP)/build/$(ZIPFILE) $(BUILD)/$(ARCNAME)-$(REVISION)$(ZIPEXT) + +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)