From: Mike Frysinger Date: Mon, 5 Dec 2016 21:02:19 +0000 (-0500) Subject: man: make clean-local more robust X-Git-Tag: 4.5~28^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=752ca15da4e0cdf75a6bdc5ad57b60f7f49cc65f;p=shadow man: make clean-local more robust If the subdirs aren't empty, the rmdir calls can fail. Simplify this code by just using `rm -rf` since that matches what we really want. --- diff --git a/man/generate_mans.mak b/man/generate_mans.mak index 28694667..f0812969 100644 --- a/man/generate_mans.mak +++ b/man/generate_mans.mak @@ -42,7 +42,7 @@ man1/% man3/% man5/% man8/%: %.xml-config Makefile config.xml -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $< clean-local: - for d in man1 man3 man5 man8; do [ -d $$d ] && rmdir $$d; done + rm -rf man1 man3 man5 man8 else $(man_MANS):