bug-make
[Top][All Lists]
Advanced

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

[bug #47151] make: -q fails for recursive makes


From: Manoj Srivastava
Subject: [bug #47151] make: -q fails for recursive makes
Date: Mon, 15 Feb 2016 04:44:25 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?47151>

                 Summary: make: -q fails for recursive makes
                 Project: make
            Submitted by: srivasta
            Submitted on: Sun 14 Feb 2016 10:44:24 PM CST
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Hi, 

This was reported by a debian user. Please retain a CC to
address@hidden so that the Debian BTS has a copy of your
input. 


Sample Makefile:

# --------------------------
foo: bar
        echo foo
bar:
        $(MAKE) baz
        echo "lala"
baz:
        echo baz
# --------------------------


$ make -q foo; echo $?
make baz
Makefile:4: recipe for target 'bar' failed
make: *** [bar] Error 1
2

The fine manual says

,----
| If the exit status is one, then some updating needs to be done. 
| If make encounters an error, the exit status is two, so you can
| distinguish an error from a target that is not up to date.
`----

This is technically kindof correct, although _why_ the error occurs is
mysterious. In particular, adding a comment before the recursive make, i.e.

bar:
        # lalala
        $(MAKE) baz
        echo "lala"

causes make -q bar to return 1. 

   Manoj




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47151>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]