NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/45356: make .SILENT doesn't work with "-j"



>Number:         45356
>Category:       bin
>Synopsis:       make .SILENT doesn't work with "-j"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 11 09:20:00 +0000 2011
>Originator:     Alan Barrett
>Release:        NetBSD 5.99.55
>Organization:
Not much
>Environment:
System: NetBSD 5.99.55
Architecture: i386
Machine: i386
>Description:
        make(1)'s "-j" command line flag causes the ".SILENT" attribute
        to be ignored for command lines that begin with "-".

>How-To-Repeat:
$ cat test.mk
.SILENT:
test: .PHONY
        @echo testing 1
        -echo testing 2
        echo testing 3

$ make -f test.mk test
testing 1
testing 2
testing 3

$ make -f test.mk -j1 test
testing 1
echo testing 2
testing 2
testing 3

That "echo testing 2" should have been suppressed by the ".SILENT"
attribute.

>Fix:



Home | Main Index | Thread Index | Old Index