Skip to content

Commit

Permalink
During "make dump" command, execute "composer install" only if the ve…
Browse files Browse the repository at this point in the history
…ndor dir is missing
  • Loading branch information
guvra committed Aug 10, 2024
1 parent 2d55937 commit 508ed1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ 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
@cp .env.dist .env
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."
@echo ".env file was automatically created."

0 comments on commit 508ed1c

Please sign in to comment.