projects
/
platform
/
upstream
/
make.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.3
[platform/upstream/make.git]
/
tests
/
scripts
/
targets
/
SILENT
1
# -*-perl-*-
2
3
$description = "Test the special target .SILENT.";
4
5
run_make_test(q!
6
.PHONY: M a b
7
M: a b
8
.SILENT : b
9
a b: ; echo $@
10
!,
11
'', "echo a\na\nb");
12
13
run_make_test(q!
14
.PHONY: M a b
15
M: a b
16
.SILENT:
17
a b: ; echo $@
18
!,
19
'', "a\nb");
20
21
# SV 54740 : don't inherit .SILENT settings in sub-makes
22
run_make_test(q!
23
.PHONY: M r a b
24
r: a b ; @$(MAKE) -f #MAKEFILE# M V=x
25
a b: ; echo $@
26
27
V =
28
$V.SILENT:
29
M: a b
30
!,
31
'--no-print-directory', "a\nb\necho a\na\necho b\nb");
32
33
1;