2.0
[hstore.git] / Makefile
1 # contrib/hstore/Makefile
2
3 MODULE_big = hstore
4 OBJS = hstore_io.o hstore_op.o hstore_gist.o hstore_gin.o hstore_compat.o \
5         hstore_gram.o hstore_support.o
6
7 EXTENSION = hstore
8 DATA = hstore--2.0.sql hstore--1.0--1.1.sql hstore--1.1--1.2.sql \
9            hstore--1.2--2.0.sql hstore--unpackaged--1.0.sql
10
11 REGRESS = hstore nested types
12
13 EXTRA_CLEAN = y.tab.c y.tab.h \
14                                 hstore_gram.c hstore_scan.c hstore_gram.h
15
16 ifdef USE_PGXS
17 PG_CONFIG = pg_config
18 PGXS := $(shell $(PG_CONFIG) --pgxs)
19 include $(PGXS)
20 else
21 subdir = contrib/hstore
22 top_builddir = ../..
23 include $(top_builddir)/src/Makefile.global
24 include $(top_srcdir)/contrib/contrib-global.mk
25 endif
26
27 hstore_gram.o: hstore_scan.c
28
29 hstore_gram.c: BISONFLAGS += -d
30
31 distprep: hstore_gram.c hstore_scan.c
32
33 maintainer-clean:
34         rm -f hstore_gram.c hstore_scan.c hstore_gram.h
35