Path: utzoo!utgpu!attcan!uunet!mcvax!ukc!strath-cs!glasgow!Robert From: robert@vax1.computing-maths.cardiff.ac.uk (Robert Evans) Newsgroups: comp.mail.sendmail,mail.uk-sendmail-workers Subject: Re: UkSendmail1.5 dom,chn Makefiles fall over on Ultrix Message-ID: <23151.8807291752@uk.ac.cardiff.computing-maths.vax1> Date: 29 Jul 88 17:52:25 GMT Sender: daemon@cs.glasgow.ac.uk Lines: 19 In-Reply-To: Jem Taylor's message of Jul 29, 18:26 X-Mailer: Mail User's Shell (6.3 6/25/88) X-mailer: mail gatewayed to news (mail-news 1.5a) | -@if [ ! -s $@ ] ; \ | But the intention *is* to stop the make if the generated file is null ... | are you saying the make stops when the file is non-null ? That is, when | the test fails ? This is really nasty ! | To abort when the file is null, we need to invert the test. Yes. | I suggest the following fragment. | | @if [ -s $@ ] ; \ | then :; \ | else echo "$@ null - Abort" ;\ | if [ -s $@.BCK ] ; then mv $@.BCK $@ ; fi;\ | exit 99 ; fi That would have the desired effect but the make aborts as a side effect of the test "[ -s $@ ]" being false rather than because of the exit! (Hard to believe but I just tried it to see). Robert