Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a4d03bb

Browse files
committed
Build bzip2 tarball in dist target as well
1 parent 16cd34a commit a4d03bb

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

GNUmakefile.in

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# PostgreSQL top level makefile
33
#
4-
# $PostgreSQL: pgsql/GNUmakefile.in,v 1.54 2009/10/29 21:57:17 petere Exp $
4+
# $PostgreSQL: pgsql/GNUmakefile.in,v 1.55 2009/11/03 21:28:10 petere Exp $
55
#
66

77
subdir =
@@ -70,12 +70,14 @@ distdir = postgresql-$(VERSION)
7070
dummy = =install=
7171
garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
7272

73-
dist: $(distdir).tar.gz
73+
dist: $(distdir).tar.gz $(distdir).tar.bz2
7474
rm -rf $(distdir)
7575

7676
$(distdir).tar: distdir
7777
$(TAR) chf $@ $(distdir)
7878

79+
.INTERMEDIATE: $(distdir).tar
80+
7981
distdir-location:
8082
@echo $(distdir)
8183

@@ -98,10 +100,10 @@ distdir:
98100
$(MAKE) -C $(distdir) distclean
99101
rm -f $(distdir)/README.CVS
100102

101-
distcheck: $(distdir).tar.gz
103+
distcheck: dist
102104
rm -rf $(dummy)
103105
mkdir $(dummy)
104-
$(GZIP) -d -c $< | $(TAR) xf -
106+
$(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
105107
install_prefix=`cd $(dummy) && pwd`; \
106108
cd $(distdir) \
107109
&& ./configure --prefix="$$install_prefix"

src/Makefile.global.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.258 2009/08/26 22:24:42 petere Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.259 2009/11/03 21:28:10 petere Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -475,10 +475,10 @@ TAS = @TAS@
475475
$(CPP) $(CPPFLAGS) -o $@ $<
476476

477477
%.gz: %
478-
$(GZIP) -f --best $<
478+
$(GZIP) --best -c $< >$@
479479

480480
%.bz2: %
481-
$(BZIP2) -f $<
481+
$(BZIP2) -c $< >$@
482482

483483
ifndef PGXS
484484

0 commit comments

Comments
 (0)