external app

This commit is contained in:
Yann Autissier
2022-11-16 08:46:00 +00:00
parent 3d79bcdad3
commit 23cd8f2779
14 changed files with 135 additions and 275 deletions
+12 -4
View File
@@ -14,11 +14,19 @@ $(APP): myos-user
app-%:
$(eval app := $(subst -$(lastword $(subst -, ,$*)),,$*))
$(eval command := $(lastword $(subst -, ,$*)))
$(if $(filter app-$(command),$(.VARIABLES)), \
$(call app-bootstrap,$(app)) \
$(call app-$(command)) \
$(if $(wildcard $(RELATIVE)$(app)), \
$(if $(filter app-$(command),$(.VARIABLES)), \
$(call app-bootstrap,$(app)) \
$(call app-$(command)) \
, \
$(if $(wildcard $(RELATIVE)$*), \
$(call app-bootstrap,$*) \
, \
$(call WARNING,Unable to find app command,$(command)) \
) \
) \
, \
$(call app-bootstrap,$*) \
$(call WARNING,Unable to find app,$(app),in dir,$(RELATIVE)$(app)) \
)
# target app-required-install: Call app-install for each APP_REQUIRED