From 6119cced74095bdfded4e8ee919f8685e47cd032 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 6 May 2021 01:40:32 -0700 Subject: [PATCH] Improved Makefile [skip ci] --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4abaab4..5f1a2ba 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ EXTENSION = vector +EXTVERSION = 0.1.2 + DATA = sql/vector--0.1.1.sql sql/vector--0.1.0--0.1.1.sql MODULE_big = vector OBJS = src/ivfbuild.o src/ivfflat.o src/ivfinsert.o src/ivfkmeans.o src/ivfscan.o src/ivfutils.o src/ivfvacuum.o src/vector.o TESTS = $(wildcard test/sql/*.sql) - REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS)) REGRESS_OPTS = --inputdir=test @@ -33,4 +34,4 @@ prove_installcheck: dist: mkdir -p dist - git archive --format zip --prefix=vector-0.1.2/ --output dist/vector-0.1.2.zip master + git archive --format zip --prefix=$(EXTENSION)-$(EXTVERSION)/ --output dist/$(EXTENSION)-$(EXTVERSION).zip master