Skip to content

Commit 4c7549e

Browse files
committed
Add PGXN distribution making target to Makefile
1 parent e0e8e15 commit 4c7549e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ endif
2626

2727
$(EXTENSION)--$(EXTVERSION).sql: setup.sql
2828
cat $^ > $@
29+
30+
# Prepare the package for PGXN submission
31+
package: dist dist/$(EXTENSION)-$(EXTVERSION).zip
32+
33+
dist:
34+
mkdir -p dist
35+
36+
dist/$(EXTENSION)-$(EXTVERSION).zip:
37+
git archive --format zip --prefix=$(EXTENSION)-$(EXTVERSION)/ --output $@ master

0 commit comments

Comments
 (0)