Commit 2c2a9a0f authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Define ZIP rather than GZIP.

Define ZIPSUFFIX to allow substitution of something other than gzip.
parent b09bd214
# Postgres documentation makefile # Postgres documentation makefile
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.12 2000/09/05 18:45:38 petere Exp $ # $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.13 2000/09/12 03:47:36 thomas Exp $
subdir = doc/src subdir = doc/src
top_builddir = ../.. top_builddir = ../..
-include $(top_builddir)/src/Makefile.global -include $(top_builddir)/src/Makefile.global
TAR= tar TAR= tar
GZIP= gzip ZIP= gzip
ZIPSUFFIX= gz
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
SRC= admin postgres programmer tutorial user SRC= admin postgres programmer tutorial user
TARGETS= $(SRC:%=%.tar.gz) TARGETS= $(SRC:%=%.tar.$(ZIPSUFFIX))
.PRECIOUS: .PRECIOUS:
.PHONY: install all sources clean distclean .PHONY: install all sources clean distclean
install: install:
$(MAKE) all $(MAKE) all
(mv -f *.gz ..) (mv -f *.$(ZIPSUFFIX) ..)
clean: clean:
$(MAKE) -C sgml clean $(MAKE) -C sgml clean
...@@ -29,7 +30,7 @@ distclean: ...@@ -29,7 +30,7 @@ distclean:
all: $(TARGETS) all: $(TARGETS)
sources: sources:
$(MAKE) sources.tar.gz $(MAKE) sources.tar.$(ZIPSUFFIX)
sources.tar: sources.tar:
($(TAR) -cf $@ sgml graphics) ($(TAR) -cf $@ sgml graphics)
...@@ -72,5 +73,6 @@ man.tar: ...@@ -72,5 +73,6 @@ man.tar:
# Compressed file # Compressed file
%.gz: % %.$(ZIPSUFFIX): %
$(GZIP) -f $< $(ZIP) -f $<
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment