Define ZIP rather than GZIP.
authorThomas G. Lockhart <[email protected]>
Tue, 12 Sep 2000 03:47:36 +0000 (03:47 +0000)
committerThomas G. Lockhart <[email protected]>
Tue, 12 Sep 2000 03:47:36 +0000 (03:47 +0000)
Define ZIPSUFFIX to allow substitution of something other than gzip.

doc/src/Makefile

index 840628b9a58a51d7cd9b9340cb5f9c03a54b577d..df6f9d953f6eb4325cffe1bb691a7aa8e5aed18f 100644 (file)
@@ -1,24 +1,25 @@
 # 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
 top_builddir = ../..
 -include $(top_builddir)/src/Makefile.global
 
 TAR= tar
-GZIP= gzip
+ZIP= gzip
+ZIPSUFFIX= gz
 TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
 
 SRC= admin postgres programmer tutorial user
 
-TARGETS= $(SRC:%=%.tar.gz)
+TARGETS= $(SRC:%=%.tar.$(ZIPSUFFIX))
 
 .PRECIOUS:
 .PHONY: install all sources clean distclean
 
 install:
        $(MAKE) all
-       (mv -f *.gz ..)
+       (mv -f *.$(ZIPSUFFIX) ..)
 
 clean:
        $(MAKE) -C sgml clean
@@ -29,7 +30,7 @@ distclean:
 all: $(TARGETS)
 
 sources:
-       $(MAKE) sources.tar.gz
+       $(MAKE) sources.tar.$(ZIPSUFFIX)
 
 sources.tar:
        ($(TAR) -cf $@ sgml graphics)
@@ -72,5 +73,6 @@ man.tar:
 
 # Compressed file
 
-%.gz:  %
-       $(GZIP) -f $<
+%.$(ZIPSUFFIX):        %
+       $(ZIP) -f $<
+