From 759a1cf6e16c9babcab9d03a9a85359ba902e96c Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Wed, 5 Apr 2006 09:58:35 +0000 Subject: [PATCH] Have make print a helpful error message if configure has not been run. --- Makefile | 6 +++++- configure | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1b31db3d0..1da7c6096 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ -include Makefile.config +-include Makefile.config include Makefile.common +ifndef CONFIGURE_RUN +$(error You must run ./configure first) +endif + ifneq ($(SYSTEM),Darwin) TARGETS = .cli diff --git a/configure b/configure index b124c7be8..2ece9e791 100755 --- a/configure +++ b/configure @@ -292,6 +292,7 @@ lrintf_test # rm -f Makefile.config cat > Makefile.config << EOF +CONFIGURE_RUN = yes SYSTEM = $SYSTEM BEOS_NETSERVER = $BEOS_NETSERVER PTHREAD = $PTHREAD