Skip to content
Snippets Groups Projects
Commit a4d03bbc authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Build bzip2 tarball in dist target as well

parent 16cd34a4
No related branches found
No related tags found
No related merge requests found
# #
# PostgreSQL top level makefile # PostgreSQL top level makefile
# #
# $PostgreSQL: pgsql/GNUmakefile.in,v 1.54 2009/10/29 21:57:17 petere Exp $ # $PostgreSQL: pgsql/GNUmakefile.in,v 1.55 2009/11/03 21:28:10 petere Exp $
# #
subdir = subdir =
...@@ -70,12 +70,14 @@ distdir = postgresql-$(VERSION) ...@@ -70,12 +70,14 @@ distdir = postgresql-$(VERSION)
dummy = =install= dummy = =install=
garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-* garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
dist: $(distdir).tar.gz dist: $(distdir).tar.gz $(distdir).tar.bz2
rm -rf $(distdir) rm -rf $(distdir)
$(distdir).tar: distdir $(distdir).tar: distdir
$(TAR) chf $@ $(distdir) $(TAR) chf $@ $(distdir)
.INTERMEDIATE: $(distdir).tar
distdir-location: distdir-location:
@echo $(distdir) @echo $(distdir)
...@@ -98,10 +100,10 @@ distdir: ...@@ -98,10 +100,10 @@ distdir:
$(MAKE) -C $(distdir) distclean $(MAKE) -C $(distdir) distclean
rm -f $(distdir)/README.CVS rm -f $(distdir)/README.CVS
distcheck: $(distdir).tar.gz distcheck: dist
rm -rf $(dummy) rm -rf $(dummy)
mkdir $(dummy) mkdir $(dummy)
$(GZIP) -d -c $< | $(TAR) xf - $(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
install_prefix=`cd $(dummy) && pwd`; \ install_prefix=`cd $(dummy) && pwd`; \
cd $(distdir) \ cd $(distdir) \
&& ./configure --prefix="$$install_prefix" && ./configure --prefix="$$install_prefix"
......
# -*-makefile-*- # -*-makefile-*-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.258 2009/08/26 22:24:42 petere Exp $ # $PostgreSQL: pgsql/src/Makefile.global.in,v 1.259 2009/11/03 21:28:10 petere Exp $
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets, # All PostgreSQL makefiles include this file and use the variables it sets,
...@@ -475,10 +475,10 @@ TAS = @TAS@ ...@@ -475,10 +475,10 @@ TAS = @TAS@
$(CPP) $(CPPFLAGS) -o $@ $< $(CPP) $(CPPFLAGS) -o $@ $<
%.gz: % %.gz: %
$(GZIP) -f --best $< $(GZIP) --best -c $< >$@
%.bz2: % %.bz2: %
$(BZIP2) -f $< $(BZIP2) -c $< >$@
ifndef PGXS ifndef PGXS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment