diff options
author | Loïc Hoguin <[email protected]> | 2015-05-14 18:50:05 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-14 18:50:05 +0300 |
commit | c0c2863a21a2eee46c69e5a2ce275c91aa2f2ba3 (patch) | |
tree | 2dc6049c8dfe2279163ba0cc023dd46e0a58559b /core/deps.mk | |
parent | a34d21e62d3b53c149882e1307f3f77def89c918 (diff) | |
download | erlang.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.mk | 10 |
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 |