mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
coupla minor fixes in the `make dist' support code
This commit is contained in:
parent
a67343d67d
commit
81ddc46c8c
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# PostgreSQL top level makefile
|
# 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 =
|
subdir =
|
||||||
@ -59,6 +59,8 @@ distdir := postgresql-$(VERSION)
|
|||||||
dummy := =install=
|
dummy := =install=
|
||||||
garbage := =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
|
garbage := =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
|
||||||
|
|
||||||
|
GZIP := gzip
|
||||||
|
BZIP2 := bzip2
|
||||||
|
|
||||||
dist: $(distdir).tar.gz
|
dist: $(distdir).tar.gz
|
||||||
ifeq ($(split-dist), yes)
|
ifeq ($(split-dist), yes)
|
||||||
@ -84,27 +86,29 @@ $(distdir).test.tar: distdir
|
|||||||
$(TAR) cf $@ $(distdir)/src/test
|
$(TAR) cf $@ $(distdir)/src/test
|
||||||
|
|
||||||
%.gz: %
|
%.gz: %
|
||||||
gzip -f --best $<
|
$(GZIP) -f --best $<
|
||||||
@text="$@ is ready for distribution." ; \
|
|
||||||
frame=`echo "$$text" | sed -e 's/./=/g'` ; \
|
|
||||||
echo "$$frame" ; echo "$$text" ; echo "$$frame"
|
|
||||||
|
|
||||||
distdir: distprep
|
%.bz2: %
|
||||||
-rm -rf $(distdir)* $(install)
|
$(BZIP2) -f $<
|
||||||
|
|
||||||
|
distdir:
|
||||||
|
-rm -rf $(distdir)* $(dummy)
|
||||||
for x in `cd $(top_srcdir) && find . -name CVS -prune -o -print`; do \
|
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 \
|
if test -d "$(top_srcdir)/$$file" ; then \
|
||||||
mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
|
mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
|
||||||
else \
|
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; \
|
fi || exit; \
|
||||||
done
|
done
|
||||||
|
$(MAKE) -C $(distdir) distprep
|
||||||
$(MAKE) -C $(distdir) distclean
|
$(MAKE) -C $(distdir) distclean
|
||||||
|
|
||||||
distcheck: dist
|
distcheck: $(distdir).tar.gz
|
||||||
-rm -rf $(dummy)
|
-rm -rf $(dummy)
|
||||||
mkdir $(dummy)
|
mkdir $(dummy)
|
||||||
gunzip -c $(distdir).tar.gz | $(TAR) xf -
|
gzip -d -c $< | $(TAR) xf -
|
||||||
install_prefix=`cd $(dummy) && pwd`; \
|
install_prefix=`cd $(dummy) && pwd`; \
|
||||||
cd $(distdir) \
|
cd $(distdir) \
|
||||||
&& ./configure --prefix="$$install_prefix"
|
&& ./configure --prefix="$$install_prefix"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user