--- projects/cms/source/reports/php/Makefile 2001/03/26 17:11:16 1.1 +++ projects/cms/source/reports/php/Makefile 2001/12/20 02:26:23 1.3 @@ -1,5 +1,5 @@ # Makefile for php webreports -# $Id: Makefile,v 1.1 2001/03/26 17:11:16 tdb Exp $ +# $Id: Makefile,v 1.3 2001/12/20 02:26:23 tdb Exp $ include Config.inc @@ -7,14 +7,16 @@ include Config.inc FILES = README `ls -d alerts/* | grep -v CVS` `ls -d allalerts/* | grep -v CVS`\ `ls -d historical/* | grep -v CVS` `ls -d index/* | grep -v CVS`\ `ls -d latest/* | grep -v CVS` `ls -d public/* | grep -v CVS`\ - `ls -d shared/* | grep -v CVS` + `ls -d shared/* | grep -v CVS` `ls -d logins/* | grep -v CVS` all: dist dist: - tar -cvf $(BUILDDIR)/$(TARFILE) $(FILES) + mkdir -p $(BUILDDIR)/temp + cp -Rp $(FILES) $(BUILDDIR)/temp + cd $(BUILDDIR)/temp && tar -cvf ../$(TARFILE) * gzip -fv9 $(BUILDDIR)/$(TARFILE) - zip -9 $(BUILDDIR)/$(ZIPFILE) $(FILES) + cd $(BUILDDIR)/temp && zip -9 ../$(ZIPFILE) * cvsbuild: $(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) @@ -23,6 +25,7 @@ cvsbuild: cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(ZIPFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(ZIPEXT) clean: + rm -Rf $(BUILDDIR)/temp rm -Rf $(BUILDDIR)/$(ZIPFILE) rm -Rf $(BUILDDIR)/$(TARFILE) rm -Rf $(BUILDDIR)/$(TARGZFILE)