From caa8bce19df3dd7ce1f72e8b8417581ad43c07b8 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 4 Oct 2017 02:50:56 +0200 Subject: [PATCH] Fix Makefile (#203) --- symfony/framework-bundle/3.3/Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/symfony/framework-bundle/3.3/Makefile b/symfony/framework-bundle/3.3/Makefile index fd93a109..974a678e 100644 --- a/symfony/framework-bundle/3.3/Makefile +++ b/symfony/framework-bundle/3.3/Makefile @@ -1,31 +1,31 @@ -CONSOLE := $(shell printf %q "`which bin/console`") +CONSOLE := $(shell which bin/console) sf_console: -ifeq ($(CONSOLE), '') +ifndef CONSOLE @printf "Run \033[32mcomposer require cli\033[39m to install the Symfony console.\n" endif cache-clear: -ifneq ($(CONSOLE), '') - @$(CONSOLE) cache:clear --no-warmup +ifdef CONSOLE + @bin/console cache:clear --no-warmup else @rm -rf var/cache/* endif .PHONY: cache-clear cache-warmup: cache-clear -ifneq ($(CONSOLE), '') - @$(CONSOLE) cache:warmup +ifdef CONSOLE + @bin/console cache:warmup else @printf "Cannot warm up the cache (needs symfony/console).\n" endif .PHONY: cache-warmup serve_as_sf: sf_console -ifeq ($(CONSOLE), '') +ifndef CONSOLE @${MAKE} serve_as_php endif - @$(CONSOLE) | grep server:start > /dev/null || ${MAKE} serve_as_php - @$(CONSOLE) server:start + @bin/console list | grep server:start > /dev/null || ${MAKE} serve_as_php + @bin/console server:start @printf "Quit the server with \033[32;49mbin/console server:stop\033[39m\n"