[4792] in Athena Bugs
vax 6.4R: /bin/make
daemon@ATHENA.MIT.EDU (John T Kohl)
Thu Apr 19 09:19:38 1990
Date: Thu, 19 Apr 90 09:19:23 -0400
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System name: lycus
Type and version: CVAXSTAR 6.4R
Display type: SM
*What were you trying to do?
use make -k to do several independent targets, expecting some of
them to fail.
*What's wrong:
(1) make completely abandons all work when it can't find a
program it is directed to run; this is NOT what I expected it to do, and
the documentation is a bit vague.
(2) In such a case, make exits without an error
indication status:
[{1}lycus:/mit/krb5/vax_43/lib/krb]
% make -k get_in_tkt.o in_tkt_pwd.o in_tkt_sky.o addr_srch.o send_tgs.o
rm -f get_in_tkt.o
gcc -fstrength-reduce -fpcc-struct-return -pedantic -ansi -Wall -c -O -g -I../.././include -I../.././include/stdc-incl get_in_tkt.c
Make: Cannot load gcc. Stop.
[{1}lycus:/mit/krb5/vax_43/lib/krb]
%
*What should have happened:
(1) make should have tried the other targets
(2) make should have exited with a non-zero exit status.
*Please describe any relevant documentation references:
make(1) says this about -k:
-k When a command returns nonzero status, abandon work on
the current entry, but continue on branches that do not
depend on the current entry.
It's debatable whether non-zero status applies to commands which aren't
found and thus can't return a status; I want such a case to
be treated as if the command returned non-zero status.