[bug #16372] .DELETE_ON_ERROR does not delete directories

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[bug #16372] .DELETE_ON_ERROR does not delete directories

Robert Morell

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16372>

                 Summary: .DELETE_ON_ERROR does not delete directories
                 Project: make
            Submitted by: None
            Submitted on: Tuesday 04/18/06 at 18:44 UTC
                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

    _______________________________________________________

Details:

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 <[hidden email]>






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16372>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-make mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-make
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[bug #16372] .DELETE_ON_ERROR does not delete directories

Robert Morell
Follow-up Comment #1, bug #16372 (project make):

Agreed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?16372>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-make
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[bug #16372] .DELETE_ON_ERROR does not delete directories

Robert Morell
Follow-up Comment #2, bug #16372 (project make):

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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?16372>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-make
Loading...