We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent452bdcb commitf4a87c5Copy full SHA for f4a87c5
Makefile
@@ -28,11 +28,10 @@ $(EXTENSION)--$(EXTVERSION).sql: setup.sql
28
cat$^>$@
29
30
# Prepare the package for PGXN submission
31
-DISTVERSION :=$(shell git tag -l | tail -n 1 | cut -d 'v' -f 2)
32
-package: dist dist/$(EXTENSION)-$(DISTVERSION).zip
+package: dist .git
+$(eval DISTVERSION :=$(shell git tag -l | tail -n 1 | cut -d 'v' -f 2))
33
+$(info Generating zip file for version$(DISTVERSION)...)
34
+git archive --format zip --prefix=$(EXTENSION)-${DISTVERSION}/ --output dist/$(EXTENSION)-${DISTVERSION}.zip HEAD
35
36
dist:
37
mkdir -p dist
-
-dist/$(EXTENSION)-$(DISTVERSION).zip:
38
-git archive --format zip --prefix=$(EXTENSION)-$(DISTVERSION)/ --output$@ HEAD