From: Michael Smith Date: Mon, 4 Apr 2005 11:20:34 +0000 (+0000) Subject: DISTRIB_DEPENDS = example X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b38fcb7c6986fb515abfc130e0a481b1ebcb7173;p=docbook-dsssl DISTRIB_DEPENDS = example --- diff --git a/website/Makefile b/website/Makefile index d55558d45..da5c76606 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,11 +1,11 @@ # $Id$ + include ../cvstools/Makefile.incl + DISTRO=website RELVER=$(shell cat ./VERSION) ZIPVER=$(RELVER) -DIFFVER= -NEXTVER= -TMP=/tmp +DISTRIB_DEPENDS=example .PHONY : distrib clean example @@ -13,62 +13,8 @@ all: $(MAKE) -C schema all $(MAKE) -C extensions all -distrib: example - $(CVS2LOG) -w -ifeq ($(DIFFVER),) - $(MERGELOGS) > WhatsNew -else - $(MERGELOGS) -v $(DIFFVER) > WhatsNew -endif - example: - $(MAKE) -C example DOCBOOK_WEBSITE=.. - -newversion: -ifeq ($(NEXTVER),) - $(NEXTVERSION) -else - $(NEXTVERSION) -v $(NEXTVER) -endif - $(MAKE) distrib - -excludes: - rm -f $(TMP)/tar.exclude - touch $(TMP)/tar.exclude - -zip: excludes -ifeq ($(ZIPVER),) - @echo You must specify ZIPVER for the zip target - exit 1 -else - find . -type f | xargs chmod 0644 - find . -type d | xargs chmod 0755 -ifneq ($(EXECUTABLES),) - chmod 0755 $(EXECUTABLES) -endif - rm -rf $(TMP)/docbook-$(DISTRO)-$(ZIPVER) - rm -f $(TMP)/docbook-$(DISTRO)-$(ZIPVER).tar.gz - rm -f $(TMP)/docbook-$(DISTRO)-$(ZIPVER).tar.bz2 - rm -f $(TMP)/docbook-$(DISTRO)-$(ZIPVER).zip - umask 022; mkdir $(TMP)/docbook-$(DISTRO)-$(ZIPVER) - find . -print | grep /CVS$$ | cut -c3- >> $(TMP)/tar.exclude - find . -print | grep /CVS/ | cut -c3- >> $(TMP)/tar.exclude - find . -print | grep /debian/ | cut -c3- >> $(TMP)/tar.exclude - find . -print | grep .classes | cut -c3- >> $(TMP)/tar.exclude - find . -print | grep "~$$" | cut -c3- >> $(TMP)/tar.exclude - find . -type f -name ".*.pyc" | cut -c3- >> $(TMP)/tar.exclude - find . -type f -name "#*" | cut -c3- >> $(TMP)/tar.exclude - find . -type f -name ".#*" | cut -c3- >> $(TMP)/tar.exclude - find . -type f -name "prj.el" | cut -c3- >> $(TMP)/tar.exclude - find . -type f -name ".cvsignore" | cut -c3- >> $(TMP)/tar.exclude - find . -type f -name "Makefile*" | cut -c3- >> $(TMP)/tar.exclude - find . -type f -name "README.CVS" | cut -c3- >> $(TMP)/tar.exclude - tar cf - * --exclude-from $(TMP)/tar.exclude | (cd $(TMP)/docbook-$(DISTRO)-$(ZIPVER); tar xf -) - umask 022; cd $(TMP) && tar cf - docbook-$(DISTRO)-$(ZIPVER) | gzip > docbook-$(DISTRO)-$(ZIPVER).tar.gz - umask 022; cd $(TMP) && tar cf - docbook-$(DISTRO)-$(ZIPVER) | bzip2 > docbook-$(DISTRO)-$(ZIPVER).tar.bz2 - umask 022; cd $(TMP) && zip -q -rpD docbook-$(DISTRO)-$(ZIPVER).zip docbook-$(DISTRO)-$(ZIPVER) - rm -f $(TMP)/tar.exclude -endif + $(MAKE) -C example DOCBOOK_WEBSITE=$(WEBSITEROOT) clean: $(MAKE) -C extensions clean @@ -78,3 +24,11 @@ clean: realclean: clean $(MAKE) -C extensions realclean $(MAKE) -C example realclean + +# the following is used only for release builds; ignore it if you +# are doing a non-release build +excludes: + rm -f $(TMP)/tar.exclude + touch $(TMP)/tar.exclude + +include ../cvstools/Makefile.common