--- projects/cms/source/server/build/Makefile 2003/01/26 14:02:52 1.11 +++ projects/cms/source/server/build/Makefile 2003/02/02 19:25:21 1.13 @@ -1,42 +1,50 @@ # Makefile for build -# $Id: Makefile,v 1.11 2003/01/26 14:02:52 tdb Exp $ +# $Id: Makefile,v 1.13 2003/02/02 19:25:21 tdb Exp $ include ../Config.inc BUILDFILES = uk +.PHONY : all all : dist +.PHONY : clean clean : rm -Rf $(BUILDFILES) rm -f $(PACKAGE) rm -f $(UTILPACKAGE) rm -f $(CHANGELOG) rm -Rf $(DISTDIR) - rm -f $(TARFILE) - rm -f $(TARGZFILE) - rm -f $(ZIPFILE) + rm -f $(TARFILE) $(TARGZFILE) $(ZIPFILE) + rm -f $(TARGZFILESIG) $(ZIPFILESIG) + rm -f $(BINTARFILE) $(BINTARGZFILE) $(BINZIPFILE) + rm -f $(BINTARGZFILESIG) $(BINZIPFILESIG) rm -Rf $(DOCDIR) $(SRCDIR) - rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK) + rm -f $(MKDISTBINCHECK) $(MKDISTCHECK) $(MKDISTFILESCHECK) $(MKDISTFILESBINCHECK) +.PHONY : package package : $(PACKAGE) -$(PACKAGE) : $(BUILDCHECK) +$(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 +.PHONY : packageutil packageutil : $(UTILPACKAGE) -$(UTILPACKAGE) : $(BUILDCHECK) +$(UTILPACKAGE) : $(MCOMPILECHECK) jar -cf $(UTILPACKAGE) $(BUILDFILES) -dist-bin : mk-dist-bin mk-distfiles +.PHONY : dist-bin +dist-bin : $(MKDISTBINCHECK) $(MKDISTFILESBINCHECK) -dist : mk-dist mk-distfiles +.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 @@ -47,6 +55,7 @@ $(MKDISTBINCHECK) : $(PACKAGE) $(CHANGELOG) @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 @@ -57,12 +66,26 @@ $(MKDISTCHECK) : $(PACKAGE) $(JAVADOCCHECK) $(SRCCHECK @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) + -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(TARGZFILE) zip -r -9 $(DISTDEST)/$(ZIPFILE) $(DISTDIR)/* + -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(ZIPFILE) @touch $(MKDISTFILESCHECK) + +.PHONY : mk-distfiles-bin +mk-distfiles-bin : $(MKDISTFILESBINCHECK) +$(MKDISTFILESBINCHECK) : + if test ! -d "$(DISTDEST)"; then mkdir -p $(DISTDEST); fi + tar -cvf $(DISTDEST)/$(BINTARFILE) $(DISTDIR) + gzip -fv9 $(DISTDEST)/$(BINTARFILE) + -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(BINTARGZFILE) + zip -r -9 $(DISTDEST)/$(BINZIPFILE) $(DISTDIR)/* + -$(GPG) $(GPGFLAGS) $(DISTDEST)/$(BINZIPFILE) + @touch $(MKDISTFILESBINCHECK) include $(MKINC)