From 508ed1c85483886090d906e582b68a22c912d528 Mon Sep 17 00:00:00 2001 From: guvra Date: Sat, 10 Aug 2024 12:56:11 +0200 Subject: [PATCH] During "make dump" command, execute "composer install" only if the vendor dir is missing --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 43b9821a..ede9fea6 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ db-import: up ## Execute a SQL file. Pass the parameter "filename=" to set the f $(eval filename ?= dump.sql) $(DOCKER_COMPOSE) exec -T db sh -c 'mysql --password=$$MYSQL_ROOT_PASSWORD' < $(filename) -vendor: composer.json +vendor: | composer.json $(PHP_CLI) composer install .env: | .env.dist @@ -75,4 +75,4 @@ vendor: composer.json ifeq ($(UNAME), Linux) @sed -i -e "s/^UID=.*/UID=$$(id -u)/" -e "s/^GID=.*/GID=$$(id -g)/" .env endif - @echo ".env file was automatically created." \ No newline at end of file + @echo ".env file was automatically created."