--- projects/cms/source/server/build/Makefile 2000/12/11 23:44:31 1.1.2.3 +++ projects/cms/source/server/build/Makefile 2003/02/01 19:08:54 1.12 @@ -1,23 +1,77 @@ # Makefile for build -# $Id: Makefile,v 1.1.2.3 2000/12/11 23:44:31 tdb Exp $ +# $Id: Makefile,v 1.12 2003/02/01 19:08:54 tdb Exp $ include ../Config.inc BUILDFILES = uk -all : package +.PHONY : all +all : dist +.PHONY : clean clean : rm -Rf $(BUILDFILES) - rm -Rf $(PACKAGE) + rm -f $(PACKAGE) + rm -f $(UTILPACKAGE) + rm -f $(CHANGELOG) + rm -Rf $(DISTDIR) + rm -f $(TARFILE) + rm -f $(TARGZFILE) + rm -f $(ZIPFILE) + rm -Rf $(DOCDIR) $(SRCDIR) + rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK) +.PHONY : package package : $(PACKAGE) -$(PACKAGE) : +$(PACKAGE) : $(IDLCHECK) $(MCOMPILECHECK) + rm -f $(PACKAGE) @echo "Main-Class: $(MAINCLASS)" > MANIFEST_TMP @echo "Class-Path: $(CLPATH)" >> MANIFEST_TMP jar -cmf MANIFEST_TMP $(PACKAGE) $(BUILDFILES) rm -f MANIFEST_TMP - @touch $(BUILDCHECK) + +.PHONY : packageutil +packageutil : $(UTILPACKAGE) + +$(UTILPACKAGE) : $(MCOMPILECHECK) + jar -cf $(UTILPACKAGE) $(BUILDFILES) + +.PHONY : dist-bin +dist-bin : $(MKDISTBINCHECK) $(MKDISTFILESCHECK) + +.PHONY : dist +dist : $(MKDISTCHECK) $(MKDISTFILESCHECK) + +.PHONY : mk-dist-bin +mk-dist-bin : $(MKDISTBINCHECK) +$(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG) + 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 + @touch $(MKDISTBINCHECK) + @rm -f $(MKDISTFILESCHECK) + +.PHONY : mk-dist +mk-dist : $(MKDISTCHECK) +$(MKDISTCHECK) : $(PACKAGE) $(JAVADOCCHECK) $(SRCCHECK) $(CHANGELOG) + 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 + @touch $(MKDISTCHECK) + @rm -f $(MKDISTFILESCHECK) + +.PHONY : mk-distfiles +mk-distfiles : $(MKDISTFILESCHECK) +$(MKDISTFILESCHECK) : + if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi + tar -cvf $(DISTDEST)/$(TARFILE) $(DISTDIR) + gzip -fv9 $(DISTDEST)/$(TARFILE) + zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/* + @touch $(MKDISTFILESCHECK) include $(MKINC)