aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-14 18:50:05 +0300
committerLoïc Hoguin <[email protected]>2015-05-14 18:50:05 +0300
commitc0c2863a21a2eee46c69e5a2ce275c91aa2f2ba3 (patch)
tree2dc6049c8dfe2279163ba0cc023dd46e0a58559b /core/deps.mk
parenta34d21e62d3b53c149882e1307f3f77def89c918 (diff)
downloaderlang.mk-c0c2863a21a2eee46c69e5a2ce275c91aa2f2ba3.tar.gz
erlang.mk-c0c2863a21a2eee46c69e5a2ce275c91aa2f2ba3.tar.bz2
erlang.mk-c0c2863a21a2eee46c69e5a2ce275c91aa2f2ba3.zip
Add package json to the index
This commit also fixes dependencies which have no Makefile and are not Erlang projects. The detection of Erlang project is a little naive at the moment but works. We can refine it later on if needed.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 103426d..4a9c9ac 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -66,7 +66,11 @@ define dep_autopatch
$(call dep_autopatch_erlang_mk,$(1)); \
fi \
else \
- $(call dep_autopatch2,$(1)); \
+ if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \
+ $(call dep_autopatch_noop,$(1)); \
+ else \
+ $(call dep_autopatch2,$(1)); \
+ fi \
fi
endef
@@ -78,6 +82,10 @@ define dep_autopatch2
fi
endef
+define dep_autopatch_noop
+ printf "noop:\n" > $(DEPS_DIR)/$(1)/Makefile
+endef
+
# Overwrite erlang.mk with the current file by default.
ifeq ($(NO_AUTOPATCH_ERLANG_MK),)
define dep_autopatch_erlang_mk