summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rwxr-xr-xconfigure2
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9ad9db5..930c684 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,10 @@
# Copyright 2012 - 2013 Daniel Borkmann <borkmann@gnumaniacs.org>
# Subject to the GNU GPL, version 2.
-include Config
+-include Config
+ifndef CONFIG_OK
+ $(error "Please run `./configure' before `make'")
+endif
VERSION = 0
PATCHLEVEL = 5
diff --git a/configure b/configure
index 94cc924..61a6ba0 100755
--- a/configure
+++ b/configure
@@ -246,4 +246,6 @@ if [ "$MISSING_NACL" == "1" ] ; then
exit 1
fi
+echo "CONFIG_OK=1" >> Config
+
exit 0