Instead of enumerating the files to clean by hand, set PROGS=${TESTS}.
authortb <tb@openbsd.org>
Fri, 31 Aug 2018 17:35:21 +0000 (17:35 +0000)
committertb <tb@openbsd.org>
Fri, 31 Aug 2018 17:35:21 +0000 (17:35 +0000)
Suggested by jsing

regress/lib/libcrypto/asn1/Makefile
regress/lib/libcrypto/free/Makefile

index 3128179..2dae70e 100644 (file)
@@ -1,10 +1,12 @@
-#      $OpenBSD: Makefile,v 1.4 2018/08/30 18:36:59 tb Exp $
+#      $OpenBSD: Makefile,v 1.5 2018/08/31 17:35:21 tb Exp $
 
 TESTS = \
        asn1evp \
        asn1time \
        rfc5280time
 
+PROGS = ${TESTS}
+
 REGRESS_TARGETS= all_tests
 
 LDADD=         -lcrypto
@@ -13,8 +15,6 @@ WARNINGS=     Yes
 LDFLAGS+=      -lcrypto
 CFLAGS+=       -DLIBRESSL_INTERNAL -Wall -Wundef -Werror
 
-CLEANFILES+= ${TESTS} ${TESTS:S/$/.d/}
-
 all_tests: ${TESTS}
        @for test in $>; do \
                ./$$test; \
index dabc062..4e8a7ed 100644 (file)
@@ -1,8 +1,10 @@
-#      $OpenBSD: Makefile,v 1.2 2018/07/10 20:53:30 tb Exp $
+#      $OpenBSD: Makefile,v 1.3 2018/08/31 17:35:21 tb Exp $
 
 TESTS = \
        freenull
 
+PROG = ${TESTS}
+
 REGRESS_TARGETS= all_tests
 
 LDADD=         -lcrypto
@@ -10,7 +12,7 @@ DPADD=                ${LIBCRYPTO} ${LIBSSL}
 LDFLAGS+=      -lcrypto
 CFLAGS+=       -DLIBRESSL_INTERNAL
 
-CLEANFILES+= ${TESTS} ${TESTS}.d freenull.c freenull.c.body freenull.c.tmp
+CLEANFILES+= freenull.c freenull.c.body freenull.c.tmp
 
 freenull.c: freenull.awk ../../../../lib/libcrypto/Symbols.list
        awk -f ${.CURDIR}/freenull.awk \