[03/30] Remove useless check for config-host.mak

Submitted by Juan Quintela on Aug. 27, 2009, 7:17 p.m.

Details

Message ID aa045f51a9035fd0b1d8912909f7d7fb195ab202.1251399960.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 27, 2009, 7:17 p.m.
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.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

diff --git a/Makefile b/Makefile
index d7db158..bd180f9 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!"
@@ -26,12 +29,6 @@  endif

 build-all: config-host.h $(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
-
 %.c %.h: config-host.h
 config-host.h: config-host.h-timestamp
 config-host.h-timestamp: config-host.mak