blob: 8d9ce93c16b96830fede074cf05947cfb635f30f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# $NetBSD: depsrc-nopath.mk,v 1.3 2024/04/27 20:41:32 rillig Exp $
#
# Tests for the special source .NOPATH in dependency declarations.
.if !target(test-*)
_!= rm -rf depsrc-nopath.dir
_!= mkdir depsrc-nopath.dir
_!= touch depsrc-nopath.dir/regular.file
_!= touch depsrc-nopath.dir/nopath.file
.endif
all:
@${MAKE} -f ${MAKEFILE} test-regular
@${MAKE} -f ${MAKEFILE} test-nopath || echo "should have failed"
@rm -rf depsrc-nopath.dir
.PATH: depsrc-nopath.dir
test-regular: regular.file
: Making ${.TARGET} from ${.ALLSRC}
test-nopath: nopath.file
: Making ${.TARGET} from ${.ALLSRC}
nopath.file: .NOPATH
# expect: : Making test-regular from depsrc-nopath.dir/regular.file
# expect: : Making test-nopath from nopath.file
|