-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
64 lines (53 loc) · 1.49 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
MODULES = aggs_for_vecs
EXTENSION = aggs_for_vecs
EXTENSION_VERSION = 1.3.2
DATA = $(EXTENSION)--$(EXTENSION_VERSION).sql \
$(EXTENSION)--1.2.1--1.3.0.sql \
$(EXTENSION)--1.3.0--1.3.1.sql \
$(EXTENSION)--1.3.1--1.3.2.sql \
$(EXTENSION)--1.2.1.sql
REGRESS = setup \
hist_2d \
hist_md \
pad_vec \
vec_add \
vec_coalesce \
vec_div \
vec_mul \
vec_pow \
vec_sub \
vec_agg_stat \
vec_to_count \
vec_to_first \
vec_to_last \
vec_to_max \
vec_to_mean \
vec_to_min \
vec_to_sum \
vec_to_var_samp \
vec_to_weighted_mean \
vec_trim_scale \
vec_without_outliers \
update_extension
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
REGRESS_OPTS = --dbname=$(EXTENSION)_regression # This must come *after* the include since we override the build-in --dbname.
test:
echo "Run make installcheck to run tests"
exit 1
# Build and install to all versions listed in .versions.
install-all:
./multi.sh install
# Run make installcheck for all versions listed in .versions.
installcheck-all:
./multi.sh installcheck
bench:
./bench/setup.sh
./bench/bench-all.sh | tee bench-results.txt
bench-results.txt: bench
bench-report.txt: bench-results.txt
./bench/format-table.rb < bench-results.txt | tee bench-report.txt
release:
git archive --format zip --prefix=$(EXTENSION)-$(EXTENSION_VERSION)/ --output $(EXTENSION)-$(EXTENSION_VERSION).zip master
.PHONY: test bench release