tests/make: remove unnecessary conditional processing for meta test
The .if/.else distracted from the main topic of the test and made it too hard to see the main targets.
This commit is contained in:
parent
873fd60810
commit
43a11772f6
|
@ -1,31 +1,27 @@
|
|||
# $NetBSD: depsrc-meta.mk,v 1.4 2020/11/27 08:39:07 rillig Exp $
|
||||
# $NetBSD: depsrc-meta.mk,v 1.5 2022/01/26 22:19:25 rillig Exp $
|
||||
#
|
||||
# Tests for the special source .META in dependency declarations.
|
||||
|
||||
# TODO: Implementation
|
||||
# TODO: Explanation
|
||||
|
||||
.if make(actual-test)
|
||||
.MAIN: all
|
||||
|
||||
.if make(actual-test)
|
||||
.MAKEFLAGS: -dM
|
||||
.MAKE.MODE= meta curDirOk=true
|
||||
.endif
|
||||
|
||||
actual-test: depsrc-meta-target
|
||||
depsrc-meta-target: .META
|
||||
@> ${.TARGET}-file
|
||||
@rm -f ${.TARGET}-file
|
||||
|
||||
.elif make(check-results)
|
||||
|
||||
check-results:
|
||||
@echo 'Targets from meta mode:'
|
||||
@awk '/^TARGET/ { print "| " $$0 }' depsrc-meta-target.meta
|
||||
@rm depsrc-meta-target.meta
|
||||
|
||||
.else
|
||||
|
||||
all:
|
||||
@${MAKE} -f ${MAKEFILE} actual-test
|
||||
@${MAKE} -f ${MAKEFILE} check-results
|
||||
|
||||
.endif
|
||||
|
|
Loading…
Reference in New Issue