This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: FEATURE REQUEST: make uninstall should delete empty directories.
- From: Bob Friesenhahn <bfriesen at simple dot dallas dot tx dot us>
- To: Frederik dot Fouvry at CoLi dot Uni-SB dot DE
- Cc: automake at gnu dot org
- Date: Mon, 8 Mar 2004 21:21:12 -0600 (CST)
- Subject: Re: FEATURE REQUEST: make uninstall should delete empty directories.
On Fri, 5 Mar 2004, Frederik Fouvry wrote:
>
> ,-- On Wed, 3 Mar, Bob Friesenhahn wrote:
>
> [...]
>
> | It is not always easy to see if a directory is empty. For example,
> | when NFS is being used, sometimes .nfs files are created in the
> | directories, so the directory is not really empty.
>
> Won't remove commands refuse to clean up a directory if it's not
> empty?
The ANSI C remove() function removes non-empty directories under
Linux. :-)
On the other hand, the unlink() system call does not remove non-empty
directories.
Since Automake is multi-platform, it is wise to verify that all
supported platforms can support safe directory removal semantics.
Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen