-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
47 lines (38 loc) · 1.17 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
MODULES = aggs_for_arrays
EXTENSION = aggs_for_arrays
EXTENSION_VERSION = 1.3.3
DATA = $(EXTENSION)--$(EXTENSION_VERSION).sql
REGRESS = setup \
array_to_count \
array_to_hist \
array_to_hist_2d \
array_to_kurtosis \
array_to_max \
array_to_mean \
array_to_median \
array_to_min \
array_to_min_max \
array_to_mode \
array_to_percentile \
array_to_percentiles \
array_to_skewness \
sorted_array_to_median \
sorted_array_to_mode \
sorted_array_to_percentile \
sorted_array_to_percentiles
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
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