@@ -231,8 +231,7 @@ ifdef EXTRA_CLEAN
231
231
endif
232
232
ifdef REGRESS
233
233
# things created by various check targets
234
- rm -rf results tmp_check log
235
- rm -f regression.diffs regression.out regress.out run_check.out
234
+ rm -rf $(pg_regress_clean_files)
236
235
ifeq ($(PORTNAME ) , win)
237
236
rm -f regress.def
238
237
endif
@@ -280,12 +279,11 @@ endif
280
279
281
280
# against installed postmaster
282
281
installcheck : submake
283
- $(top_builddir ) /src/test/regress/pg_regress --inputdir= $( srcdir ) --psqldir= $( PSQLDIR )$(REGRESS_OPTS ) $(REGRESS )
282
+ $(pg_regress_installcheck ) $(REGRESS_OPTS ) $(REGRESS )
284
283
285
284
# in-tree test doesn't work yet (no way to install my shared library)
286
285
# check: all submake
287
- # $(top_builddir)/src/test/regress/pg_regress --temp-install\
288
- # --top-builddir=$(top_builddir) $(REGRESS_OPTS) $(REGRESS)
286
+ # $(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
289
287
check :
290
288
@echo" 'make check' is not supported."
291
289
@echo" Do 'make install', then 'make installcheck' instead."