aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Stenius <[email protected]>2015-03-26 14:33:47 +0100
committerAndreas Stenius <[email protected]>2015-03-26 14:34:11 +0100
commita963e58cd0b0e3fe5026906cfb3649e8a3d5ef23 (patch)
tree39ebf67e4a5ad9dc6b70fc50bde31c9cb7be3a40
parentb23a88ada3ad9d38bdc90c1f080fd1ffe396703b (diff)
downloaderlang.mk-a963e58cd0b0e3fe5026906cfb3649e8a3d5ef23.tar.gz
erlang.mk-a963e58cd0b0e3fe5026906cfb3649e8a3d5ef23.tar.bz2
erlang.mk-a963e58cd0b0e3fe5026906cfb3649e8a3d5ef23.zip
Require makefile to build dep. Fixes #218.
-rw-r--r--core/deps.mk3
-rw-r--r--erlang.mk3
2 files changed, 4 insertions, 2 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 74bc30b..879cf43 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -37,7 +37,8 @@ deps:: $(ALL_DEPS_DIRS)
if [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ] ; then \
$(MAKE) -C $$dep ; \
else \
- echo "include $(CURDIR)/erlang.mk" | ERLC_OPTS=+debug_info $(MAKE) -f - -C $$dep ; \
+ echo "ERROR: No makefile to build dependency $$dep. Consider adding it to AUTOPATCH." ; \
+ exit 1 ; \
fi ; \
done
diff --git a/erlang.mk b/erlang.mk
index e6833bc..c68ef25 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -142,7 +142,8 @@ deps:: $(ALL_DEPS_DIRS)
if [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ] ; then \
$(MAKE) -C $$dep ; \
else \
- echo "include $(CURDIR)/erlang.mk" | ERLC_OPTS=+debug_info $(MAKE) -f - -C $$dep ; \
+ echo "ERROR: No makefile to build dependency $$dep. Consider adding it to AUTOPATCH." ; \
+ exit 1 ; \
fi ; \
done