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:
parent
e33cb8ae12
commit
752ca15da4
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user