浏览代码

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

- fixed wrong test for the existence of $(module)/doc/Makefile
Andrei Pelinescu-Onciul 15 年之前
父节点
当前提交
413c76aa40
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Makefile.rules

+ 1 - 1
Makefile.rules

@@ -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