automake
[Top][All Lists]
Advanced

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

Re: How not to override existing file


From: Tom Tromey
Subject: Re: How not to override existing file
Date: 31 Aug 2002 20:04:22 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

>>>>> "Sean" == Sean MacLennan <address@hidden> writes:

Sean> Ok, I have done that. Now one last question. What is the "correct" way
Sean> to remove a directory when I do not want an error if the directory is
Sean> non-empty.

Sean>     rmdir $(DESTDIR)$(rootdir)

If you want to ignore the error, prefix the command with `-'.  That
tells make to ignore it.

If you want to delete the directory even if it has contents, use "rm -rf".
(This is dangerous.)

Tom




reply via email to

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