]> granicus.if.org Git - shadow/commitdiff
man: make clean-local more robust
authorMike Frysinger <vapier@gentoo.org>
Mon, 5 Dec 2016 21:02:19 +0000 (16:02 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 5 Dec 2016 21:02:19 +0000 (16:02 -0500)
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.

man/generate_mans.mak

index 286946679ee7d1ecd061fd45b0b43b18f9937a28..f08129697627230fa469cf247efee2b08cd762d2 100644 (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 $<
 
 clean-local:
-       for d in man1 man3 man5 man8; do [ -d $$d ] && rmdir $$d; done
+       rm -rf man1 man3 man5 man8
 
 else
 $(man_MANS):