symbols: Tweak this test so it works with -j N
authortb <tb@openbsd.org>
Thu, 22 Jun 2023 19:23:27 +0000 (19:23 +0000)
committertb <tb@openbsd.org>
Thu, 22 Jun 2023 19:23:27 +0000 (19:23 +0000)
regress/lib/libcrypto/symbols/Makefile

index b37fb87..7b703bb 100644 (file)
@@ -1,10 +1,8 @@
-#      $OpenBSD: Makefile,v 1.3 2022/09/21 15:24:45 tb Exp $
+#      $OpenBSD: Makefile,v 1.4 2023/06/22 19:23:27 tb Exp $
 
 TESTS = \
        symbols
 
-PROG = ${TESTS}
-
 REGRESS_TARGETS= all_tests
 
 .include <bsd.own.mk>                                  # for BSDSRCDIR
@@ -29,10 +27,10 @@ CFLAGS+=    -Wno-deprecated-declarations
 CLEANFILES+= include_headers.c symbols.c symbols.c.tmp
 
 symbols.c: symbols.awk ../../../../lib/libcrypto/Symbols.list
-       make -f ${.CURDIR}/Makefile include_headers.c
+       make -f ${.CURDIR}/Makefile include_headers.c; \
        awk -f ${.CURDIR}/symbols.awk \
-               < ${BSDSRCDIR}/lib/libcrypto/Symbols.list > symbols.c.tmp
-       mv symbols.c.tmp symbols.c
+               < ${BSDSRCDIR}/lib/libcrypto/Symbols.list > $@.tmp; \
+       mv -f $@.tmp $@
 
 all_tests: ${TESTS}
        @for test in $>; do \