@@ -231,8 +231,7 @@ ifdef EXTRA_CLEAN
231231endif
232232ifdef REGRESS
233233# 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)
236235ifeq ($(PORTNAME ) , win)
237236rm -f regress.def
238237endif
@@ -280,12 +279,11 @@ endif
280279
281280# against installed postmaster
282281installcheck : submake
283- $(top_builddir ) /src/test/regress/pg_regress --inputdir= $( srcdir ) --psqldir= $( PSQLDIR )$(REGRESS_OPTS ) $(REGRESS )
282+ $(pg_regress_installcheck ) $(REGRESS_OPTS ) $(REGRESS )
284283
285284# in-tree test doesn't work yet (no way to install my shared library)
286285# 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)
289287check :
290288@echo" 'make check' is not supported."
291289@echo" Do 'make install', then 'make installcheck' instead."