OSDN Git Service

Mask constants of sort key value.
[pgstoreplans/pg_store_plans.git] / Makefile
1 # contrib/pg_stat_plan/Makefile
2
3 MODULE_big = pg_store_plans
4 OBJS = pg_store_plans.o pgsp_json.o pgsp_json_text.o pgsp_explain.o
5
6 EXTENSION = pg_store_plans
7 DATA = pg_store_plans--1.0.sql
8
9 REGRESS = all
10 REGRESS_OPTS = --temp-config=regress.conf
11 ifdef USE_PGXS
12 PG_CONFIG = pg_config
13 PGXS := $(shell $(PG_CONFIG) --pgxs)
14 include $(PGXS)
15 else
16 subdir = contrib/pg_store_plans
17 top_builddir = ../..
18 include $(top_builddir)/src/Makefile.global
19 include $(top_srcdir)/contrib/contrib-global.mk
20 endif
21
22 ## Theses entries needs running server
23 DBNAME = postgres
24 testfiles: all.out all.sql
25
26 all.out: all.sql
27         psql $(DBNAME) -a -q -f all.sql > all.out
28
29 all.sql: makeplanfile.sql json2sql.pl
30         psql $(DBNAME) -f makeplanfile.sql | ./json2sql.pl > all.sql
31
32 clean-testfiles:
33         rm -f all.out all.sql
34
35 deploy-testfiles: testfiles
36         mv all.sql sql/
37         mv all.out expected/