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.
This commit is contained in:
Mike Frysinger 2016-12-05 16:02:19 -05:00
parent e33cb8ae12
commit 752ca15da4

View File

@ -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 $< -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
clean-local: clean-local:
for d in man1 man3 man5 man8; do [ -d $$d ] && rmdir $$d; done rm -rf man1 man3 man5 man8
else else
$(man_MANS): $(man_MANS):