We only need to run configure in open-isns if either the
configure script or Makefile.in has changed. Otherwise
it's perfectly okay just to call a plain 'make' here.

Signed-off-by: Hannes Reinecke <[email protected]>

diff --git a/Makefile b/Makefile
index 8dd64c7..de7ef65 100644
--- a/Makefile
+++ b/Makefile
@@ -29,8 +29,8 @@ OPTFLAGS ?= -O2 -g
 
 all: user
 
-user: ;
-       cd utils/open-isns; ./configure CFLAGS="$(OPTFLAGS)" 
--with-security=no; $(MAKE)
+user: utils/open-isns/Makefile
+       $(MAKE) -C utils/open-isns
        $(MAKE) -C utils/sysdeps
        $(MAKE) -C utils/fwparam_ibft
        $(MAKE) -C usr
@@ -44,6 +44,9 @@ user: ;
        @echo
        @echo "Read README file for detailed information."
 
+utils/open-isns/Makefile: utils/open-isns/configure utils/open-isns/Makefile.in
+       cd utils/open-isns; ./configure CFLAGS="$(OPTFLAGS)" --with-security=no
+
 kernel: force
        $(MAKE) -C kernel
        @echo "Kernel Compilation complete          Output file"

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to