help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Gnu Make 3.79.1 - gives errors while removing files i.e. using make


From: Karl Berry
Subject: Re: Gnu Make 3.79.1 - gives errors while removing files i.e. using make clean
Date: Sun, 23 May 2004 20:16:49 -0400

      if [ test -e foo1 ]; then rm foo1; else true; fi

Or, equivalently but slightly more briefly,
        test ! -e foo1 || rm -f foo1

In general, Makefiles always need to use || instead of (the often more
natural) &&, to avoid the problem.




reply via email to

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