Browse code

makefile: clean-modules fix for cleaning modules*/*/doc

- fixed wrong test for the existence of $(module)/doc/Makefile

Andrei Pelinescu-Onciul authored on 05/02/2010 20:21:20
Showing 1 changed files
... ...
@@ -224,7 +224,7 @@ clean-modules:
224 224
 		if [ -d "$$r" ]; then \
225 225
 			$(call oecho,"module $$r" ;) \
226 226
 			$(MAKE) -C "$$r" clean ; \
227
-			[ -d "$$r"/doc/Makefile ] && $(MAKE) -C "$$r"/doc clean ; \
227
+			[ -r "$$r"/doc/Makefile ] && $(MAKE) -C "$$r"/doc clean ; \
228 228
 		fi ; \
229 229
 	done
230 230