[sr-dev] git:master: makefile: clean-modules fix for cleaning modules*/*/doc

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Feb 5 21:21:43 CET 2010


Module: sip-router
Branch: master
Commit: 413c76aa409389ceca03caab729b490bdf119ff8
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=413c76aa409389ceca03caab729b490bdf119ff8

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri Feb  5 21:21:20 2010 +0100

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

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

---

 Makefile.rules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.rules b/Makefile.rules
index 7b46ef3..a3003be 100644
--- a/Makefile.rules
+++ b/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
 




More information about the sr-dev mailing list