You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
574 B

SHELL := bash
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
endif
.RECIPEPREFIX = >
.DEFAULT_GOAL := help
.PHONY: init upgrade up help clear-log
DC=docker-compose
SETFACL=sudo setfacl -R -m u:${USER}:rwX,d:u:${USER}:rwX
CHOWN=sudo chown -R
WWW=${HOME}/public
init: create-dir set-acl upgrade
create-dir:
> mkdir -p data
set-acl:
> $(SETFACL) data
> $(CHOWN) 33:33 data
upgrade:
> $(DC) pull
> $(DC) build --pull
up:
> $(DC) up
help:
> @printf "Usage : make [init|upgrade|set-acl|up]"