From b056957952d1db1b77601d42b2697751f3ac472a Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 18 Feb 2016 02:37:26 +0000 Subject: bsd.regress.mk doesn't automatically add "make clean" targets for $SUBDIRS so do it explicitly --- regress/usr.bin/ssh/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'regress/usr.bin/ssh') diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile index d7e30582f0e..9b442ee2b39 100644 --- a/regress/usr.bin/ssh/Makefile +++ b/regress/usr.bin/ssh/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.82 2015/09/24 06:16:53 djm Exp $ +# $OpenBSD: Makefile,v 1.83 2016/02/18 02:37:25 djm Exp $ .ifndef SKIP_UNIT SUBDIR= unittests @@ -191,7 +191,13 @@ INTEROP_TARGETS+=t-${t} # Not run by default interop: ${INTEROP_TARGETS} -clean: +.for s in ${SUBDIR} +CLEAN_SUBDIR+=c-${s} +c-${s}: + ${MAKE} -C ${.CURDIR}/${s} clean +.endfor + +clean: ${CLEAN_SUBDIR} rm -f ${CLEANFILES} test -z "${SUDO}" || ${SUDO} rm -f ${SUDO_CLEAN} rm -rf .putty -- cgit v1.2.3