Make sure 'make clean' will always succeed. Also make distclean in
iscsiuio subdirectory.
---
 Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 79bad84..188e3bd 100644
--- a/Makefile
+++ b/Makefile
@@ -69,9 +69,10 @@ clean:
        $(MAKE) -C utils clean
        $(MAKE) -C usr clean
        $(MAKE) -C kernel clean
-       $(MAKE) -C iscsiuio clean
-       $(MAKE) -C utils/open-isns clean
-       $(MAKE) -C utils/open-isns distclean
+       [ ! -f iscsiuio/Makefile ] || $(MAKE) -C iscsiuio clean
+       [ ! -f iscsiuio/Makefile ] || $(MAKE) -C iscsiuio distclean
+       [ ! -f utils/open-isns/Makefile ] || $(MAKE) -C utils/open-isns clean
+       [ ! -f utils/open-isns/Makefile ] || $(MAKE) -C utils/open-isns 
distclean
 
 # this is for safety
 # now -jXXX will still be safe
-- 
2.1.4

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to