Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c2a9a0

Browse files
author
Thomas G. Lockhart
committed
Define ZIP rather than GZIP.
Define ZIPSUFFIX to allow substitution of something other than gzip.
1 parent b09bd21 commit 2c2a9a0

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

doc/src/Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
# Postgres documentation makefile
2-
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.12 2000/09/05 18:45:38 petere Exp $
2+
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.13 2000/09/12 03:47:36 thomas Exp $
33

44
subdir = doc/src
55
top_builddir = ../..
66
-include $(top_builddir)/src/Makefile.global
77

88
TAR= tar
9-
GZIP= gzip
9+
ZIP= gzip
10+
ZIPSUFFIX= gz
1011
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
1112

1213
SRC= admin postgres programmer tutorial user
1314

14-
TARGETS= $(SRC:%=%.tar.gz)
15+
TARGETS= $(SRC:%=%.tar.$(ZIPSUFFIX))
1516

1617
.PRECIOUS:
1718
.PHONY: install all sources clean distclean
1819

1920
install:
2021
$(MAKE) all
21-
(mv -f *.gz ..)
22+
(mv -f *.$(ZIPSUFFIX) ..)
2223

2324
clean:
2425
$(MAKE) -C sgml clean
@@ -29,7 +30,7 @@ distclean:
2930
all: $(TARGETS)
3031

3132
sources:
32-
$(MAKE) sources.tar.gz
33+
$(MAKE) sources.tar.$(ZIPSUFFIX)
3334

3435
sources.tar:
3536
($(TAR) -cf $@ sgml graphics)
@@ -72,5 +73,6 @@ man.tar:
7273

7374
# Compressed file
7475

75-
%.gz: %
76-
$(GZIP) -f $<
76+
%.$(ZIPSUFFIX): %
77+
$(ZIP) -f $<
78+

0 commit comments

Comments
 (0)