2022-11-16 06:11:07 +01:00
|
|
|
MYOS ?= ../myos
|
|
|
|
MYOS_REPOSITORY ?= https://github.com/aynicos/myos
|
|
|
|
-include $(MYOS)/make/include.mk
|
|
|
|
$(MYOS):
|
|
|
|
-@git clone $(MYOS_REPOSITORY) $(MYOS)
|
|
|
|
|
|
|
|
.PHONY: all install shellcheck shellcheck-% tests
|
|
|
|
SHELL_FILES ?= $(wildcard .*/*.sh */*.sh */*/*.sh)
|
|
|
|
|
|
|
|
all: install tests
|
|
|
|
|
2022-11-25 06:00:22 +01:00
|
|
|
install: myos-node player-build up
|
|
|
|
|
|
|
|
player: STACK := User
|
2022-11-23 19:28:20 +01:00
|
|
|
player:
|
2022-11-25 06:00:22 +01:00
|
|
|
$(call make,stack-User-$(if $(DELETE),down,up),$(MYOS),COMPOSE_PROJECT_NAME MAIL)
|
|
|
|
|
|
|
|
player-%: STACK := User
|
|
|
|
player-%:
|
|
|
|
$(if $(filter $*,$(filter-out %-%,$(patsubst docker-compose-%,%,$(filter docker-compose-%,$(MAKE_TARGETS))))), \
|
|
|
|
$(call make,stack-User-$*,$(MYOS),COMPOSE_PROJECT_NAME MAIL) \
|
|
|
|
)
|
2022-11-23 19:28:20 +01:00
|
|
|
|
2022-11-16 06:11:07 +01:00
|
|
|
tests: shellcheck
|
|
|
|
|
|
|
|
shellcheck:
|
|
|
|
shellcheck $(SHELL_FILES) ||:
|
|
|
|
|
|
|
|
shellcheck-%:
|
|
|
|
shellcheck $*/*.sh
|