From ea56732d553c25f6a5ab8dd900da3a965cd94ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 8 Mar 2012 14:00:20 +0100 Subject: [PATCH] Improved diagnostics for building unconfigured modules. --- src/modules/Makefile.in | 7 +++++++ src/post_modules/Makefile.in | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/modules/Makefile.in b/src/modules/Makefile.in index 6cc60552f9..e2ecccb801 100644 --- a/src/modules/Makefile.in +++ b/src/modules/Makefile.in @@ -21,6 +21,13 @@ force: $(MODULES) no : Makefile force @test $@ = "no" || \ ( echo "#### Making $${MODULE_BUILD_TYPE}: $(MY_DIR)/$@"; \ + if [ -d $@ ]; then \ + rm $@.fail 2>/dev/null; \ + else \ + echo "#### You need to rerun configure to get $@." >$@.fail; \ + echo; echo; cat $@.fail >&2; echo; echo; \ + exit 0; \ + fi; \ cd $@ && \ { test -f build_type || \ { rm remake >/dev/null 2>&1 || :; \ diff --git a/src/post_modules/Makefile.in b/src/post_modules/Makefile.in index 548af32e42..1d20013669 100644 --- a/src/post_modules/Makefile.in +++ b/src/post_modules/Makefile.in @@ -21,6 +21,13 @@ force: $(MODULES) no : Makefile force @test $@ = "no" || \ ( echo "#### Making $${MODULE_BUILD_TYPE}: $(MY_DIR)/$@"; \ + if [ -d $@ ]; then \ + rm $@.fail 2>/dev/null; \ + else \ + echo "#### You need to rerun configure to get $@." >$@.fail; \ + echo; echo; cat $@.fail >&2; echo; echo; \ + exit 0; \ + fi; \ cd $@ && \ { test -f build_type || \ { rm remake >/dev/null 2>&1 || :; \ -- GitLab