Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27d2890

Browse files
committed
Unify the zip rules and variables.
1 parenta839258 commit27d2890

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed

‎GNUmakefile.in

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# PostgreSQL top level makefile
33
#
4-
# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.18 2001/04/08 17:28:10 petere Exp $
4+
# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.19 2001/09/17 23:00:27 petere Exp $
55
#
66

77
subdir =
@@ -55,9 +55,6 @@ distdir:= postgresql-$(VERSION)
5555
dummy:= =install=
5656
garbage := =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
5757

58-
GZIP:= gzip
59-
BZIP2:= bzip2
60-
6158
dist: $(distdir).tar.gz
6259
ifeq ($(split-dist), yes)
6360
dist: postgresql-base-$(VERSION).tar.gz postgresql-docs-$(VERSION).tar.gz postgresql-opt-$(VERSION).tar.gz postgresql-test-$(VERSION).tar.gz
@@ -89,12 +86,6 @@ postgresql-opt-$(VERSION).tar: distdir
8986
postgresql-test-$(VERSION).tar: distdir
9087
$(TAR) cf $@ $(distdir)/src/test
9188

92-
%.gz: %
93-
$(GZIP) -f --best $<
94-
95-
%.bz2: %
96-
$(BZIP2) -f $<
97-
9889
distdir:
9990
-rm -rf $(distdir)* $(dummy)
10091
for x in `cd $(top_srcdir) && find . -name CVS -prune -o -print`; do \
@@ -112,7 +103,7 @@ distdir:
112103
distcheck: $(distdir).tar.gz
113104
-rm -rf $(dummy)
114105
mkdir $(dummy)
115-
gzip -d -c $< | $(TAR) xf -
106+
$(GZIP) -d -c $< | $(TAR) xf -
116107
install_prefix=`cd $(dummy) && pwd`; \
117108
cd $(distdir) \
118109
&& ./configure --prefix="$$install_prefix"

‎doc/src/Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# Postgres documentation makefile
2-
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.20 2001/09/14 20:37:54 petere Exp $
2+
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.21 2001/09/17 23:00:27 petere Exp $
33

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

8-
TAR= tar
9-
ZIP= gzip
108
ZIPSUFFIX= gz
119
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
1210

@@ -65,10 +63,3 @@ postgres.tar:
6563
man.tar:
6664
$(MAKE) -C sgml man
6765
$(TAR) -cf$@ -C sgml man1 man$(sqlmansect_dummy)
68-
69-
# Generic production rules
70-
71-
# Compressed file
72-
73-
%.$(ZIPSUFFIX):%
74-
$(ZIP) -f$<

‎src/Makefile.global.in

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.137 2001/09/16 16:11:09 petere Exp $
2+
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.138 2001/09/17 23:00:27 petere Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -215,6 +215,9 @@ TAR= @TAR@
215215
WISH= @WISH@
216216
XGETTEXT = @XGETTEXT@
217217

218+
GZIP= gzip
219+
BZIP2= bzip2
220+
218221
# Installation.
219222

220223
INSTALL=$(SHELL)$(top_srcdir)/config/install-sh -c
@@ -329,7 +332,13 @@ STRTOUL = @STRTOUL@
329332

330333
##########################################################################
331334
#
332-
# Global targets
335+
# Global targets and rules
336+
337+
%.gz:%
338+
$(GZIP) -f --best$<
339+
340+
%.bz2:%
341+
$(BZIP2) -f$<
333342

334343
# Remake Makefile.global from Makefile.global.in if the latter
335344
# changed. In order to trigger this rule, the including file must

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp