1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
GIST/Makefile

49 lines
963 B
Makefile
Raw Normal View History

2015-05-06 10:58:55 +02:00
COMPOSER ?= composer
2018-08-08 12:41:08 +02:00
NPM ?= npm
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:
2018-08-08 12:41:08 +02:00
@echo "Installing PHP dependencies"
@echo "---------------------------"
@echo
2015-09-17 11:41:32 +02:00
2015-05-06 10:58:55 +02:00
$(COMPOSER) install $(COMPOSER_INSTALL_FLAGS)
2018-08-08 12:41:08 +02:00
npm:
@echo "Installing CSS/JS dependencies"
@echo "------------------------------"
@echo
2015-09-17 11:41:32 +02:00
2018-08-08 12:41:08 +02:00
$(NPM) install
2015-05-06 10:58:55 +02:00
update:
2015-09-17 11:41:32 +02:00
@echo "Updating application's dependencies"
@echo "-----------------------------------"
2018-08-08 12:41:08 +02:00
@echo
2015-09-17 11:41:32 +02:00
2015-05-09 17:42:53 +02:00
$(GIT) pull origin master
${MKDIR} -p data/git
2018-08-20 16:40:04 +02:00
${MKDIR} -p data/cache
2015-05-06 10:58:55 +02:00
$(COMPOSER) update
2018-08-08 12:41:08 +02:00
$(NPM) install
2015-05-09 17:42:53 +02:00
2015-09-17 11:41:32 +02:00
run:
@echo "Run development server"
@echo "----------------------"
2018-08-08 12:41:08 +02:00
@echo
2015-09-17 11:41:32 +02:00
$(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 "----------------"
2018-08-08 12:41:08 +02:00
@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