2015-05-06 10:58:55 +02:00
|
|
|
COMPOSER ?= composer
|
|
|
|
BOWER ?= bower
|
2015-05-09 17:42:53 +02:00
|
|
|
GIT ?= git
|
|
|
|
MKDIR ?= mkdir
|
2015-09-17 11:41:32 +02:00
|
|
|
PHP ?= php
|
2015-05-06 10:58:55 +02:00
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
all: update
|
2015-05-06 10:58:55 +02:00
|
|
|
|
|
|
|
composer:
|
2015-09-17 11:41:32 +02:00
|
|
|
@echo "Installing application's dependencies"
|
|
|
|
@echo "-------------------------------------"
|
|
|
|
@echo
|
|
|
|
|
2015-05-06 10:58:55 +02:00
|
|
|
$(COMPOSER) install $(COMPOSER_INSTALL_FLAGS)
|
|
|
|
bower:
|
2015-09-17 11:41:32 +02:00
|
|
|
@echo "Installing application's dependencies"
|
|
|
|
@echo "-------------------------------------"
|
|
|
|
@echo
|
|
|
|
|
2015-05-06 10:58:55 +02:00
|
|
|
$(BOWER) install
|
|
|
|
|
|
|
|
optimize:
|
2015-09-17 11:41:32 +02:00
|
|
|
@echo "Optimizing Composer's autoloader, can take some time"
|
|
|
|
@echo "----------------------------------------------------"
|
|
|
|
@echo
|
|
|
|
|
2015-05-06 10:58:55 +02:00
|
|
|
$(COMPOSER) dump-autoload --optimize
|
|
|
|
|
|
|
|
update:
|
2015-09-17 11:41:32 +02:00
|
|
|
@echo "Updating application's dependencies"
|
|
|
|
@echo "-----------------------------------"
|
|
|
|
@echo
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
$(GIT) pull origin master
|
|
|
|
${MKDIR} -p data/git
|
2015-05-06 10:58:55 +02:00
|
|
|
$(COMPOSER) update
|
|
|
|
$(BOWER) install
|
2015-05-09 17:42:53 +02:00
|
|
|
|
2015-09-17 11:41:32 +02:00
|
|
|
run:
|
|
|
|
@echo "Run development server"
|
|
|
|
@echo "----------------------"
|
|
|
|
@echo
|
|
|
|
|
|
|
|
$(PHP) -S 127.0.0.1:8080 -t web
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
propel:
|
2015-09-17 11:41:32 +02:00
|
|
|
@echo "Propel migration"
|
|
|
|
@echo "----------------"
|
|
|
|
@echo
|
|
|
|
|
2015-05-09 17:42:53 +02:00
|
|
|
./vendor/propel/propel/bin/propel config:convert
|
|
|
|
./vendor/propel/propel/bin/propel model:build --recursive
|
|
|
|
./vendor/propel/propel/bin/propel migration:diff --recursive
|
|
|
|
./vendor/propel/propel/bin/propel migration:migrate --recursive
|