--- projects/cms/source/server/build/Makefile 2000/12/11 20:22:51 1.1.2.1 +++ projects/cms/source/server/build/Makefile 2001/02/27 02:54:51 1.8 @@ -1,22 +1,35 @@ # Makefile for build -# $Id: Makefile,v 1.1.2.1 2000/12/11 20:22:51 tdb Exp $ +# $Id: Makefile,v 1.8 2001/02/27 02:54:51 tdb Exp $ -PACKAGE = iscream.jar -FILES = uk +include ../Config.inc +BUILDFILES = uk + all : package clean : - rm -Rf uk + rm -Rf $(BUILDFILES) rm -Rf $(PACKAGE) + rm -Rf $(UTILPACKAGE) + rm -Rf $(ARCNAME)*$(TAREXT) + rm -Rf $(ARCNAME)*$(TARGZEXT) + rm -Rf $(ARCNAME)*$(ZIPEXT) 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 "-----------------------------" + tar -cvf $(TARFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.sh + gzip -fv9 $(TARFILE) + zip -9 $(ZIPFILE) $(PACKAGE) `ls -d lib/* | grep -v CVS` `ls -d etc/* | grep -v CVS` README run.bat + +packageutil : $(UTILPACKAGE) + +$(UTILPACKAGE) : $(BUILDCHECK) + jar -cf $(UTILPACKAGE) $(BUILDFILES) + +include $(MKINC)