makefile: clean-modules fix for cleaning modules*/*/doc
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Fri, 5 Feb 2010 20:21:20 +0000 (21:21 +0100)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Fri, 5 Feb 2010 20:21:20 +0000 (21:21 +0100)
- fixed wrong test for the existence of $(module)/doc/Makefile

Makefile.rules

index 7b46ef3..a3003be 100644 (file)
@@ -224,7 +224,7 @@ clean-modules:
                if [ -d "$$r" ]; then \
                        $(call oecho,"module $$r" ;) \
                        $(MAKE) -C "$$r" clean ; \
-                       [ -d "$$r"/doc/Makefile ] && $(MAKE) -C "$$r"/doc clean ; \
+                       [ -r "$$r"/doc/Makefile ] && $(MAKE) -C "$$r"/doc clean ; \
                fi ; \
        done