You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
530 B

COMPOSER ?= composer
PHPCS ?= vendor/bin/phpcs
PHPCS_FLAGS = --standard=PSR2
PHPCS_DIRS = app src
all: composer
prod: COMPOSER_INSTALL_FLAGS += --no-dev
prod: all optimize
composer:
@echo
#
# Installing application's dependencies.
#
$(COMPOSER) install $(COMPOSER_INSTALL_FLAGS)
optimize:
@echo
#
# Optimizing Composer's autoloader, can take some time.
#
$(COMPOSER) dump-autoload --optimize
update:
@echo
#
# Updating application's depencies.
#
$(COMPOSER) update
cs:
$(PHPCS) $(PHPCS_FLAGS) $(PHPCS_DIRS)