Astroport.ONE/Makefile

31 lines
810 B
Makefile
Raw Normal View History

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-12-05 13:22:18 +01:00
install: build myos-host up player
2022-11-25 06:00:22 +01:00
player: STACK := User
2022-11-27 16:13:14 +01:00
player: docker-network-create-$(USER)
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