summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-09-19 16:08:07 -0400
committerOri Bernstein <orib@google.com>2012-09-19 16:08:07 -0400
commitc827bfd2eb941cfdccf9cb2a1b6e50c24af5049e (patch)
tree8687da7df02725c842b483cb0e99fb19fc8fd6e7
parentb80e9fa019f244bf9e562f629aeffaded103dec7 (diff)
downloadmc-c827bfd2eb941cfdccf9cb2a1b6e50c24af5049e.tar.gz
Run configure automatically if it hasn't been run yet.
-rw-r--r--Makefile2
-rw-r--r--mk/c.mk4
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 32f1d5b..5cd0838 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ SUB = parse \
util \
libmyr
--include config.mk
include mk/c.mk
+include config.mk
check: all
make -C test check
diff --git a/mk/c.mk b/mk/c.mk
index 5ff4ac4..bfbf4ce 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -89,5 +89,7 @@ clean-backups:
.deps:
mkdir -p $(_DEPSDIR)
-
+config.mk: configure
+ ./configure
+
-include $(_DEPS)