update Makefile envvar

This commit is contained in:
Simon Vieille 2022-01-24 22:03:23 +01:00
parent 0e72f83101
commit 17c81a98a6
1 changed files with 13 additions and 13 deletions

View File

@ -1,30 +1,30 @@
COMPOSER ?= composer
PHP ?= php8.1
SSH ?= ssh
WEBPACK ?= webpack
YARN ?= yarn
COMPOSER_BIN ?= composer
PHP_BIN ?= php8.1
SSH_BIN ?= ssh
WEBPACK_BIN ?= webpack
YARN_BIN ?= yarn
all: dep asset clean
.ONESHELL:
dep:
$(COMPOSER) update --ignore-platform-reqs
$(COMPOSER) install --ignore-platform-reqs
$(YARN)
$(COMPOSER_BIN) update --ignore-platform-reqs
$(COMPOSER_BIN) install --ignore-platform-reqs
$(YARN_BIN)
asset-watch:
$(WEBPACK) -w
$(WEBPACK_BIN) -w
asset: js-routing
$(YARN)
$(WEBPACK)
$(YARN_BIN)
$(WEBPACK_BIN)
js-routing:
$(PHP) bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
$(PHP_BIN) bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
clean:
rm -fr var/cache/dev/*
rm -fr var/cache/prod/*
doctrine-migration:
PHP=$(PHP) ./bin/doctrine-migrate
PHP=$(PHP_BIN) ./bin/doctrine-migrate