+endif
+
+all installcheck: pg_version.txt
+
+pg_version.txt:
+ echo PG_MAJORVERSION | $(CPP) -undef -x c -w -P $(CPPFLAGS) -include pg_config.h -o - - | grep -v '^$$' | sed -e 's/"//g' > $@
+ if [ -f expected/gevel.out.`cat pg_version.txt` ] ; \
+ then \
+ cp expected/gevel.out.`cat pg_version.txt` expected/gevel.out ; \
+ else \
+ cp expected/gevel.out.st expected/gevel.out ; \
+ fi