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


bug #16372: .DELETE_ON_ERROR does not delete directories

Submitted by:  None
Submitted on:  Tue 18 Apr 2006 06:44:24 PM UTC  
Votes:  10  
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 10 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Mar 2015 08:58:59 PM UTCnigelwoolawayCarbon-Copy-=>Added nigelwoolaway

    Back to the top

    Powered by Savane 3.1-cleanup1