Simplify reconfiguration
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 15 Apr 2009 16:04:03 +0000 (16:04 +0000)
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 15 Apr 2009 16:04:03 +0000 (16:04 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7113 c046a42c-6fe2-441c-8c8c-71466251a162

Makefile

index 50b8bb6..76e83ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ all: $(TOOLS) $(DOCS) recurse-all
 config-host.mak: configure
 ifneq ($(wildcard config-host.mak),)
        @echo $@ is out-of-date, running configure
-       @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh
+       @sed -n "/.*Configured with/{s/[^:]*: //p;q}" $@ | sh
 endif
 
 SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))