forked from citusdata/postgresql-topn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 749 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 749 Bytes
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
#contrib/topn/Makefile
MODULES = topn
EXTENSION = topn
sql_files = $(wildcard update/$(EXTENSION)--*.sql)
generated_sql_files = $(patsubst update/%,%,$(sql_files))
DATA_built = $(generated_sql_files)
PG_CONFIG ?= pg_config
REGRESS = add_agg union_agg char_tests null_tests add_union_tests copy_data customer_reviews_query join_tests
# be explicit about the default target
all:
SQLPP ?= cpp -undef -w -P -imacros $(shell $(PG_CONFIG) --includedir-server)/pg_config.h
# generate the sql files
%.sql: update/%.sql
$(SQLPP) $^ > $@
EXTRA_CLEAN += topn--*.sql -r $(RPM_BUILD_ROOT)
ifdef DEBUG
COPT += -O0
CXXFLAGS += -g -O0
endif
REGRESS_PREP = test_data
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
test_data:
./test_data_provider