From: tb Date: Fri, 31 Aug 2018 17:35:21 +0000 (+0000) Subject: Instead of enumerating the files to clean by hand, set PROGS=${TESTS}. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b0d27d74b576cc7287f5f2a4145101a315150783;p=openbsd Instead of enumerating the files to clean by hand, set PROGS=${TESTS}. Suggested by jsing --- diff --git a/regress/lib/libcrypto/asn1/Makefile b/regress/lib/libcrypto/asn1/Makefile index 3128179e909..2dae70e9e58 100644 --- a/regress/lib/libcrypto/asn1/Makefile +++ b/regress/lib/libcrypto/asn1/Makefile @@ -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; \ diff --git a/regress/lib/libcrypto/free/Makefile b/regress/lib/libcrypto/free/Makefile index dabc06262e4..4e8a7ed38d9 100644 --- a/regress/lib/libcrypto/free/Makefile +++ b/regress/lib/libcrypto/free/Makefile @@ -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 \