Package: make
Version: 4.0-8
Severity: normal

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. 

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages make depends on:
ii  libc6  2.19-11

make recommends no packages.

Versions of packages make suggests:
pn  make-doc  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to