bugmake - Bugs: bug #16372, .DELETE_ON_ERROR does not delete...


bug #16372: .DELETE_ON_ERROR does not delete directories

Submitter:  None
Submitted:  Tue 18 Apr 2006 06:44:24 PM UTC
Votes: 10
Severity:  3 - Normal Item Group:  Bug
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.81 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup

Tue 03 Apr 2018 09:34:08 PM UTC, comment #3: 

More than 10 years later and this bug still lingers on. This is an embarrassment.

Sun 16 Jul 2017 07:16:30 PM UTC, comment #2: 

Wow, this is really old. But I also cannot see any reason not to delete an explicitly named target regardless of whether it's a regular file or directory.

David Boyce <boyski>
Sat 15 Jul 2017 03:22:43 PM UTC, comment #1: 


Paul Draper <pauldraper>
Tue 18 Apr 2006 06:44:24 PM UTC, original submission:  

As can be easily found out, either by a simple experiment or by reading the code in commands.c/delete_target, make does not even try to delete failed targets declared as prerequisites to .DELETE_ON_ERROR if they are not regular files.

If this is desired behavior, the manual does not mention it. I argue that it is not desired. An application I am working on builds directories as target, and, for the reasons mentioned in the manual, leaving them hanging around after a failed build is confusing for the human, and produces wrong results for the program.

The problem has been reported on the bug-make list as http://lists.gnu.org/archive/html/bug-make/2003-01/msg00014.html (receiving no replies).

Bengt Martensson <nospam@bengt-martensson.de>



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by boyski (Posted a comment)
  • -email is unavailable- added by pauldraper (Posted a comment)
  • -email is unavailable- added by nigelwoolaway (Voted in favor of this item)

    There are 10 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-23 nigelwoolaway Carbon-Copy- Added nigelwoolaway

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code