OSDN Git Service

Merge branch 'master' into ut
[pghintplan/pg_hint_plan.git] / Makefile
1 #
2 # pg_hint_plan: Makefile
3 #
4 # Copyright (c) 2012, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
5 #
6
7 MODULES = pg_hint_plan
8 REGRESS = init base_plan pg_hint_plan prepare fdw ut_init ut-A ut-S ut_fini
9
10 EXTRA_CLEAN = sql/fdw.sql expected/base_plan.out expected/prepare.out expected/fdw.out
11
12 PG_CONFIG = pg_config
13 PGXS := $(shell $(PG_CONFIG) --pgxs)
14 include $(PGXS)
15
16 expected/base_plan.out: expected/base_plan-$(MAJORVERSION).out
17         cp expected/base_plan-$(MAJORVERSION).out expected/base_plan.out
18 expected/prepare.out: expected/prepare-$(MAJORVERSION).out
19         cp expected/prepare-$(MAJORVERSION).out expected/prepare.out
20
21 installcheck: expected/base_plan.out expected/prepare.out
22
23 # pg_hint_plan.c includes core.c and make_join_rel.c
24 pg_hint_plan.o: core.c make_join_rel.c