# TODO(vm) data is supposed to be in $HOME/data/ DOCKER=docker SRC_COMPOSE=srcs/ .ONESHELL : .SHELLFLAGS = -eu -c .PHONY : run help ### pretty logs #### _ECHO = echoo(){ \ if [ -t 1 ]; then \ echo "\e[30;47;1m$$*\e[0m"; \ else \ echo "$$*"; \ fi; \ } ## Run the compose. run : @$(_ECHO) echoo "Running '$(SRC_COMPOSE)'..." echo "$ cd -- $(SRC_COMPOSE)" cd -- $(SRC_COMPOSE) echo "$ $(DOCKER) compose up --build" $(DOCKER) compose up --build ## Run the compose with debug flags. debug : $(MAKE) DEBUG=yes run ## Show help help : @$(_ECHO) echo "run Run the compose." echo "debug Run the compose with debug flags." echo "That's all lol"