This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: How not to override existing file
>>>>> "Sean" == Sean MacLennan <seanm@seanm.ca> 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