Error message regression
Starting with commit 0e8c9214ba1d4128cf92442cd343bc3733478261, when trying to run make without running configure first, the error message has been changed from:
| $ make | Please call configure before running make! | make: *** [config-host.mak] Erreur 1
to this more cryptic message:
| $ make | Makefile:78: /Makefile.objs: No such file or directory | make: *** No rule to make target `/Makefile.objs'. Stop.
Any idea how to fix that properly?
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
PATCH 1/1 Makefile: Fix message for missing configure
When make is called without a valid configuration, it should tell the user what to do.
Revision 0e8c9214ba1d4128cf92442cd343bc3733478261 was a regression which resulted in a message which was no longer user friendly (reported by Aurelien Jarno).
This patch restores the old behaviour.
--- Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Makefile +2 -0
@@ -75,7 +75,9 @@ SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: $(GENERATED_HEADERS) $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) +ifneq ($(wildcard config-host.mak),) include $(SRC_PATH)/Makefile.objs +endif $(common-obj-y): $(GENERATED_HEADERS) $(filter %-softmmu,$(SUBDIR_RULES)): $(common-obj-y)
Signature · 1 line
1.6.5
[Qemu-devel] Re: [PATCH] Makefile: Fix message for missing configure
Am 14.01.2010 um 18:11 schrieb Stefan Weil:
Quoted 8 lines
When make is called without a valid configuration, it should tell the user what to do.
Revision
0e8c9214ba1d4128cf92442cd343bc3733478261was a regression which resulted in a message which was no longer user friendly (reported by Aurelien Jarno).
Quoted 4 lines
This patch restores the old behaviour.
Cc Aurelien Jarno <[email protected]>Signed-off-by Stefan Weil <[email protected]>
Looks okay, thanks.
Andreas
Quoted 22 lines
---
Makefile| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)Makefile +1
-0@@ -75,7 +75,9 @@ SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: $(GENERATED_HEADERS) $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) +ifneq ($(wildcard config-host.mak),)include $(SRC_PATH)/Makefile.objs
+endif$(common-obj-y): $(GENERATED_HEADERS) $(filter %-softmmu,$(SUBDIR_RULES)): $(common-obj-y)
Signature · 1 line
1.6.5
Re: [Qemu-devel] [PATCH] Makefile: Fix message for missing configure
In reply to Stefan WeilQuoted 9 lines · Stefan Weil
When make is called without a valid configuration, it should tell the user what to do.
Revision
0e8c9214ba1d4128cf92442cd343bc3733478261was a regression which resulted in a message which was no longer user friendly (reported by Aurelien Jarno).This patch restores the old behaviour.
Thanks for the quick reaction, applied.
Quoted 26 lines
Cc Aurelien Jarno <[email protected]>Signed-off-by Stefan Weil <[email protected]>--- Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)Makefile +2
-0@@ -75,7 +75,9 @@ SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: $(GENERATED_HEADERS) $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) +ifneq ($(wildcard config-host.mak),) include $(SRC_PATH)/Makefile.objs +endif $(common-obj-y): $(GENERATED_HEADERS) $(filter %-softmmu,$(SUBDIR_RULES)): $(common-obj-y)Signature · 1 line
1.6.5
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
Am 14.01.2010 um 15:50 schrieb Aurelien Jarno:
Quoted 8 lines
Starting with commit
0e8c9214ba1d4128cf92442cd343bc3733478261, when trying to run make without running configure first, the error message has been changed from:| $ make | Please call configure before running make! | make: *** [config-host.mak] Erreur 1
Quoted 5 lines
to this more cryptic message:
| $ make | Makefile:78: /Makefile.objs: No such file or directory | make: *** No rule to make target `/Makefile.objs'. Stop.
Sorry, didn't test that.
Quoted 1 line
Any idea how to fix that properly?
I'd assume this is due to $SRC_PATH being undefined. Probably an ifneq(...) around the include would do the trick, I'll have a look later today.
Andreas