From eea8d69b1707d058c7e6bca941db9abc1750221f Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 28 Aug 2021 15:20:19 +0000 Subject: [PATCH] Only remove the directories if there's an obj/ or obj@ --- regress/lib/libcrypto/x509/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regress/lib/libcrypto/x509/Makefile b/regress/lib/libcrypto/x509/Makefile index 6b4256bfad1..f394a936551 100644 --- a/regress/lib/libcrypto/x509/Makefile +++ b/regress/lib/libcrypto/x509/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2021/08/28 15:13:50 beck Exp $ +# $OpenBSD: Makefile,v 1.6 2021/08/28 15:20:19 tb Exp $ PROGS = constraints verify x509attribute x509name LDADD= -Wl,-Bstatic -lcrypto -Wl,-Bdynamic @@ -12,8 +12,10 @@ REGRESS_TARGETS=regress-constraints regress-verify regress-x509attribute regress CLEANFILES+= x509name.result .if make(clean) || make(cleandir) +. if ${.OBJDIR} != ${.CURDIR} .BEGIN: - rm -rf ${.OBJDIR}/[0-9]* + rm -rf [0-9]* +. endif .endif regress-verify: verify -- 2.20.1