docker-compose-viz/Makefile
2020-07-23 22:26:42 +02:00

34 lines
581 B
Makefile

DCV_IMAGE_NAME=pmsipilot/docker-compose-viz
COMPOSER ?= composer
COMPOSERFLAGS ?=
DOCKER ?= docker
PHP ?= php
.PHONY: clean docker test unit cs fix-cs
docker: docker.lock
test: vendor unit cs
unit: vendor
$(COMPOSER) run ut
cs:
$(COMPOSER) run cst
fix-cs:
$(COMPOSER) run cs
clean:
rm -rf vendor/
docker.lock: Dockerfile bin/entrypoint.sh vendor src/application.php src/functions.php
$(DOCKER) build -t $(DCV_IMAGE_NAME) .
touch docker.lock
vendor: composer.lock
$(COMPOSER) install --prefer-dist
composer.lock: composer.json
$(COMPOSER) update $(COMPOSERFLAGS)