| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.94 2020/08/26 23:00:47 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.95 2020/08/27 19:09:37 rillig Exp $ |
2 | # @(#)Makefile 5.2 (Berkeley) 12/28/90 | | 2 | # @(#)Makefile 5.2 (Berkeley) 12/28/90 |
3 | | | 3 | |
4 | PROG= make | | 4 | PROG= make |
5 | SRCS= arch.c | | 5 | SRCS= arch.c |
6 | SRCS+= buf.c | | 6 | SRCS+= buf.c |
7 | SRCS+= compat.c | | 7 | SRCS+= compat.c |
8 | SRCS+= cond.c | | 8 | SRCS+= cond.c |
9 | SRCS+= dir.c | | 9 | SRCS+= dir.c |
10 | SRCS+= enum.c | | 10 | SRCS+= enum.c |
11 | SRCS+= for.c | | 11 | SRCS+= for.c |
12 | SRCS+= hash.c | | 12 | SRCS+= hash.c |
13 | SRCS+= job.c | | 13 | SRCS+= job.c |
14 | SRCS+= lst.c | | 14 | SRCS+= lst.c |
| @@ -169,21 +169,21 @@ CPPFLAGS+= ${USER_CPPFLAGS} | | | @@ -169,21 +169,21 @@ CPPFLAGS+= ${USER_CPPFLAGS} |
169 | CFLAGS+= ${USER_CFLAGS} | | 169 | CFLAGS+= ${USER_CFLAGS} |
170 | | | 170 | |
171 | # A simple unit-test driver to help catch regressions | | 171 | # A simple unit-test driver to help catch regressions |
172 | TEST_MAKE ?= ${.OBJDIR}/${PROG:T} | | 172 | TEST_MAKE ?= ${.OBJDIR}/${PROG:T} |
173 | test: .MAKE | | 173 | test: .MAKE |
174 | cd ${.CURDIR}/unit-tests \ | | 174 | cd ${.CURDIR}/unit-tests \ |
175 | && MAKEFLAGS= ${TEST_MAKE} -r -m / TEST_MAKE=${TEST_MAKE} ${TESTS:DTESTS=${TESTS:Q}} ${.TARGET} | | 175 | && MAKEFLAGS= ${TEST_MAKE} -r -m / TEST_MAKE=${TEST_MAKE} ${TESTS:DTESTS=${TESTS:Q}} ${.TARGET} |
176 | .if ${USE_COVERAGE} == yes | | 176 | .if ${USE_COVERAGE} == yes |
177 | ${GCOV} ${GCOV_OPTS} ${SRCS} | | 177 | ${GCOV} ${GCOV_OPTS} ${SRCS} |
178 | sed -i 's,^\([^:]*\): *[0-9]*:,\1: ,' *.gcov | | 178 | sed -i 's,^\([^:]*\): *[0-9]*:,\1: ,' *.gcov |
179 | .endif | | 179 | .endif |
180 | | | 180 | |
181 | accept sync-mi: .MAKE | | 181 | accept sync-mi: .MAKE |
182 | cd ${.CURDIR}/unit-tests && ${.MAKE} ${.TARGET} | | 182 | cd ${.CURDIR}/unit-tests && ${.MAKE} ${MAKEFLAGS} ${.TARGET} |
183 | | | 183 | |
184 | retest: | | 184 | retest: |
185 | ${.MAKE} -C ${.CURDIR}/unit-tests cleandir | | 185 | ${.MAKE} -C ${.CURDIR}/unit-tests cleandir |
186 | .if ${USE_COVERAGE} == yes | | 186 | .if ${USE_COVERAGE} == yes |
187 | rm -f *.gcov *.gcda | | 187 | rm -f *.gcov *.gcda |
188 | .endif | | 188 | .endif |
189 | ${.MAKE} test | | 189 | ${.MAKE} test |