bug-make
[Top][All Lists]
Advanced

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

.DELETE_ON_ERROR doesn't work for directories


From: Jonathan_Baccash
Subject: .DELETE_ON_ERROR doesn't work for directories
Date: Wed, 15 Jan 2003 10:20:17 -0800

The .DELETE_ON_ERROR target doesn't work for directories.  If I have a
directory "t2" and there is an error while updating the "t2" target but
after the "t2" directory has been created, the directory is not removed,
even if I have specified .DELETE_ON_ERROR as a target.  Here is an example:

t1:
      touch t1
      false

t2:
      mkdir t2
      false

Here is an example of the output:
$ ls
Makefile
$ gmake t1
touch t1
false
gmake: *** [t1] Error 255
gmake: *** Deleting file `t1'
$ gmake t2
mkdir t2
false
gmake: *** [t2] Error 255
$ ls
Makefile  t2

As you can see, the directory is not removed, but the file is.  Thanks,

Jon.




************************************************************************

If you have received this e-mail in error, please delete it and notify the 
sender as soon as possible. The contents of this e-mail may be confidential and 
the unauthorized use, copying, or dissemination of it and any attachments to 
it, is prohibited. 

Internet communications are not secure and Hyperion does not, therefore, accept 
legal responsibility for the contents of this message nor for any damage caused 
by viruses.  The views expressed here do not necessarily represent those of 
Hyperion.

For more information about Hyperion, please visit our Web site at 
www.hyperion.com




reply via email to

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