Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

"make sdist" creates a zip package too

  • Loading branch information...
commit e2e74f88c2ae4a13bd0143d6fbf4d60362fbe27a 1 parent b210aa5
@dvarrazzo authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 Makefile
View
12 Makefile
@@ -62,7 +62,9 @@ REGRESS = --inputdir=test setup-$(PG91) mpz mpq
EXTRA_CLEAN = $(INSTALLSCRIPT) $(UPGRADESCRIPT)
PKGNAME = pgmp-$(EXT_LONGVER)
-SRCPKG = dist/$(PKGNAME).tar.gz
+SRCPKG = $(SRCPKG_TGZ) $(SRCPKG_ZIP)
+SRCPKG_TGZ = dist/$(PKGNAME).tar.gz
+SRCPKG_ZIP = dist/$(PKGNAME).zip
USE_PGXS=1
PGXS := $(shell $(PG_CONFIG) --pgxs)
@@ -86,7 +88,11 @@ $(SRCPKG): $(PKGFILES)
$(MAKE) -C docs html
ln -sf . $(PKGNAME)
mkdir -p dist
- rm -rf $@
- tar czvf $@ $(addprefix $(PKGNAME)/,$^) \
+ rm -f $(SRCPKG_TGZ)
+ tar czvf $(SRCPKG_TGZ) $(addprefix $(PKGNAME)/,$^) \
$(PKGNAME)/docs/html --exclude "$(PKGNAME)/docs/html/.*"
+ rm -f $(SRCPKG_ZIP)
+ zip -r $(SRCPKG_ZIP) $(addprefix $(PKGNAME)/,$^) \
+ $(PKGNAME)/docs/html -x "$(PKGNAME)/docs/html/.*"
rm $(PKGNAME)
+
Please sign in to comment.
Something went wrong with that request. Please try again.