From c0c2863a21a2eee46c69e5a2ce275c91aa2f2ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 14 May 2015 18:50:05 +0300 Subject: 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. --- core/deps.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core/deps.mk') 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 -- cgit v1.2.3