1 # contrib/gevel/Makefile
8 EXTRA_CLEAN = pg_version.txt expected/gevel.out
10 all installcheck: pg_version.txt
14 PGXS := $(shell $(PG_CONFIG) --pgxs)
17 subdir = contrib/gevel
18 include $(top_srcdir)/contrib/contrib-global.mk
21 VERSION = $(MAJORVERSION)
23 REGRESS += gevel_btree gevel_brin
24 DATA += gevel.btree.sql gevel.brin.sql
29 echo PG_MAJORVERSION | $(CPP) -undef -x c -w -P $(CPPFLAGS) -include pg_config.h -o - - | grep -v '^$$' | sed -e 's/"//g' > $@
30 if [ -f expected/gevel.out.$(VERSION)`cat pg_version.txt` ] ; \
32 cp expected/gevel.out.$(VERSION)`cat pg_version.txt` expected/gevel.out ; \
34 cp expected/gevel.out.$(VERSION) expected/gevel.out ; \