help-make
[Top][All Lists]
Advanced

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

Re: gmake keeps going when it shouldn't?


From: Stephan Beal
Subject: Re: gmake keeps going when it shouldn't?
Date: Thu, 13 Aug 2009 16:50:05 +0200

On Thu, Aug 13, 2009 at 10:55 AM, Stephen O'Loughlin <address@hidden> wrote:
Say I have a makefile with the following...

file4.txt: file3.txt
       xterm -e "sleep 4 ; touch file4.txt"

file1.txt:
       xterm -e "sleep 4 ; touch file1.txt"

file2.txt: file1.txt
       xterm -e "sleep 4 ; touch file2.txt"

file3.txt: file2.txt
       xterm -e "sleep 4 ; touch file3.txt"
...
supposed to build file2.txt.  I would end up with file1.txt, file3.txt
and file4.txt, which isn't what I would expect or what I want.

Make cares here only about the return code from "xterm". xterm is apparently returning 0 when you close it (which is not unreasonable!).



--
----- stephan beal
http://wanderinghorse.net/home/stephan/

reply via email to

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