diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-08-28 15:20:20 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-08-28 15:20:20 +0000 |
commit | 659c4094db8052995ccc17833abb0c0607afe22b (patch) | |
tree | 794e7ffadfa41c612c3cf166e6a0cd8b296a86ee /regress/lib | |
parent | 103df2f44a2226d1df9260046a8c5294bc566460 (diff) |
Only remove the directories if there's an obj/ or obj@
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libcrypto/x509/Makefile | 6 |
1 files 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 |