summaryrefslogtreecommitdiff
path: root/GNUmakefile.in
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-08-20 15:55:15 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-08-20 15:55:15 +0000
commit81ddc46c8c795abf582b3b87e0dd1d639673399c (patch)
tree53c7a83c98c710333b9652902c464fabe118012d /GNUmakefile.in
parenta67343d67df5be1ab47749292f16c60fb76ce6d7 (diff)
downloadpostgresql-81ddc46c8c795abf582b3b87e0dd1d639673399c.tar.gz
coupla minor fixes in the `make dist' support code
Diffstat (limited to 'GNUmakefile.in')
-rw-r--r--GNUmakefile.in26
1 files changed, 15 insertions, 11 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 8f544455e9..b347831317 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -1,7 +1,7 @@
#
# PostgreSQL top level makefile
#
-# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.9 2000/07/19 16:29:41 petere Exp $
+# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.10 2000/08/20 15:55:15 petere Exp $
#
subdir =
@@ -59,6 +59,8 @@ distdir := postgresql-$(VERSION)
dummy := =install=
garbage := =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
+GZIP := gzip
+BZIP2 := bzip2
dist: $(distdir).tar.gz
ifeq ($(split-dist), yes)
@@ -84,27 +86,29 @@ $(distdir).test.tar: distdir
$(TAR) cf $@ $(distdir)/src/test
%.gz: %
- gzip -f --best $<
- @text="$@ is ready for distribution." ; \
- frame=`echo "$$text" | sed -e 's/./=/g'` ; \
- echo "$$frame" ; echo "$$text" ; echo "$$frame"
+ $(GZIP) -f --best $<
-distdir: distprep
- -rm -rf $(distdir)* $(install)
+%.bz2: %
+ $(BZIP2) -f $<
+
+distdir:
+ -rm -rf $(distdir)* $(dummy)
for x in `cd $(top_srcdir) && find . -name CVS -prune -o -print`; do \
- file=`expr $$x : '\./\(.*\)'`; \
+ file=`expr X$$x : 'X\./\(.*\)'`; \
if test -d "$(top_srcdir)/$$file" ; then \
mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
else \
- ln "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
+ ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
+ || cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
fi || exit; \
done
+ $(MAKE) -C $(distdir) distprep
$(MAKE) -C $(distdir) distclean
-distcheck: dist
+distcheck: $(distdir).tar.gz
-rm -rf $(dummy)
mkdir $(dummy)
- gunzip -c $(distdir).tar.gz | $(TAR) xf -
+ gzip -d -c $< | $(TAR) xf -
install_prefix=`cd $(dummy) && pwd`; \
cd $(distdir) \
&& ./configure --prefix="$$install_prefix"