Overriding a default run-regress-* target with custom commands is already
possible and done by many tests. The fact that it currently works depends
on behavior in the BUGs section of make.1, however. The fix is not to add
commands if the target is already defined with commands.
tested by anton
correct fix from espie, ok anton
-# $OpenBSD: bsd.regress.mk,v 1.24 2021/08/31 23:33:05 bluhm Exp $
+# $OpenBSD: bsd.regress.mk,v 1.25 2022/12/09 09:30:54 tb Exp $
# Documented in bsd.regress.mk(5)
# No man pages for regression tests.
.for p in ${PROG} ${PROGS}
run-regress-$p: $p
+. if !commands(run-regress-$p)
./$p
+. endif
.PHONY: run-regress-$p
.endfor