From ec5d5db8feb8c797ddaaf5e4d1afbae31eda461e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 5 May 2023 16:14:23 +0200 Subject: Deps: Add a project-specific patch for hut Hut has both a Makefile and erlang.mk but the default target does not build the project. To fix a few packages we have a special patch HUT_PATCH that will call the appropriate target. --- core/deps.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/deps.mk') diff --git a/core/deps.mk b/core/deps.mk index d07bb0c..6741580 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -206,6 +206,9 @@ ifneq ($(ALL_DEPS_DIRS),) echo $$dep >> $(ERLANG_MK_TMP)/deps.log; \ if [ -z "$(strip $(FULL))" ] $(if $(force_rebuild_dep),&& ! ($(call force_rebuild_dep,$$dep)),) && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \ :; \ + elif [ "$$dep" = "$(DEPS_DIR)/hut" -a "$(HUT_PATCH)" ]; then \ + $(MAKE) -C $$dep app IS_DEP=1; \ + if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \ elif [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ]; then \ $(MAKE) -C $$dep IS_DEP=1; \ if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \ -- cgit v1.2.3