ifeq ($(pg83),true) # we have 8.3 with internal txid
-# nothing to do
+# install empty txid.sql
+DATA_built = txid.sql
+include $(PGXS)
+txid.sql: txid.internal.sql
+ cp $< $@
else # 8.2 or 8.1
#
DATA_built = txid.sql
EXTRA_CLEAN = txid.sql.in
+# PGXS build procedure
+include $(PGXS)
+
ifeq ($(pg82),true)
# 8.2 tracks epoch internally
TXID_SQL = txid.std.sql
# 8.1 needs epoch-tracking code
TXID_SQL = txid.std.sql txid.schema.sql
endif # ! 8.2
-endif # ! 8.3
-
-# PGXS build procedure
-include $(PGXS)
# additional deps
txid.o: txid.h
txid.sql.in: $(TXID_SQL)
cat $(TXID_SQL) > $@
+endif # ! 8.3
+
test: install
make installcheck || { less regression.diffs; exit 1; }