qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT e5efe7f] Remove useless check for config-host.mak


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT e5efe7f] Remove useless check for config-host.mak
Date: Fri, 09 Oct 2009 02:21:53 -0000

From: Juan Quintela <address@hidden>

If config-host.mak dont' exist, we have exited in the check at
the beginning of the file.
Once here, move the bits to the else part of the test at the beginning of
the file.

Patchworks-ID: 35191
Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/Makefile b/Makefile
index 144b392..9169dd5 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@ ifneq ($(wildcard config-host.mak),)
 all: build-all
 include config-host.mak
 include $(SRC_PATH)/rules.mak
+config-host.mak: configure
+       @echo $@ is out-of-date, running configure
+       @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
 else
 config-host.mak:
        @echo "Please call configure before running make!"
@@ -34,12 +37,6 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
 build-all: config-host.h
        $(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) $(TOOLS) $(DOCS) 
recurse-all,)
 
-config-host.mak: configure
-ifneq ($(wildcard config-host.mak),)
-       @echo $@ is out-of-date, running configure
-       @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
-endif
-
 config-host.h: config-host.h-timestamp
 config-host.h-timestamp: config-host.mak
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]