--- projects/cms/source/server/build/Makefile 2000/12/11 20:22:51 1.1.2.1 +++ projects/cms/source/server/build/Makefile 2002/06/07 16:12:47 1.10 @@ -1,22 +1,58 @@ # Makefile for build -# $Id: Makefile,v 1.1.2.1 2000/12/11 20:22:51 tdb Exp $ +# $Id: Makefile,v 1.10 2002/06/07 16:12:47 tdb Exp $ -PACKAGE = iscream.jar -FILES = uk +include ../Config.inc -all : package +BUILDFILES = uk +all : dist + clean : - rm -Rf uk + rm -Rf $(BUILDFILES) rm -Rf $(PACKAGE) + rm -Rf $(UTILPACKAGE) + rm -Rf $(CHANGELOG) + rm -Rf $(DISTDIR) + rm -Rf $(TARFILE) + rm -Rf $(TARGZFILE) + rm -Rf $(ZIPFILE) package : $(PACKAGE) -$(PACKAGE) : - @echo "Main-Class: uk.ac.ukc.iscream.core.Core" > MANIFEST_TMP - @echo "Class-Path: /usr/local/work/co610/JacORB/lib/idl.jar /usr/local/work/co610/JacORB/lib/jacorb.jar /home/proj/co600_10/xml-lib/jaxp.jar /home/proj/co600_10/xml-lib/parser.jar" >> MANIFEST_TMP - jar -cvmf MANIFEST_TMP $(PACKAGE) $(FILES) +$(PACKAGE) : $(BUILDCHECK) + rm -Rf $(PACKAGE) + @echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP + @echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP + jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES) rm -f MANIFEST_TMP - @echo "-----------------------------" - @echo "to run: java -jar $(PACKAGE)" - @echo "-----------------------------" + +packageutil : $(UTILPACKAGE) + +$(UTILPACKAGE) : $(BUILDCHECK) + jar -cf $(UTILPACKAGE) $(BUILDFILES) + +dist-bin : mk-dist-bin mk-distfiles + +dist : mk-dist mk-distfiles + +mk-dist-bin : $(PACKAGE) + if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi + echo "CVS" > TAR_EXCLUDE_TMP + echo ".#*" >> TAR_EXCLUDE_TMP + tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - ) + rm -f TAR_EXCLUDE_TMP + +mk-dist : $(PACKAGE) + if test ! -d "$(DISTDIR)"; then mkdir -p $(DISTDIR); fi + echo "CVS" > TAR_EXCLUDE_TMP + echo ".#*" >> TAR_EXCLUDE_TMP + tar -cf - -X TAR_EXCLUDE_TMP $(PACKAGE) lib etc src ChangeLog doc README run.sh run.bat COPYING | ( cd $(DISTDIR) && tar -xf - ) + rm -f TAR_EXCLUDE_TMP + +mk-distfiles : + if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi + tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR) + gzip -fv9 $(DISTDEST)/$(TARFILE) + zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/* + +include $(MKINC)