2020-02-18 03:09:59 +01:00
|
|
|
.PHONY: all install composer_install move_dir migrate fix
|
2020-02-18 02:51:45 +01:00
|
|
|
|
|
|
|
INSTALL_DIR=$(DESTDIR)/opt/raspisms2
|
|
|
|
ENV=prod
|
|
|
|
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
|
|
|
|
vendor: composer.phar composer.json
|
|
|
|
./composer.phar self-update
|
|
|
|
./composer.phar install
|
|
|
|
|
|
|
|
|
2020-02-18 03:09:59 +01:00
|
|
|
|
2020-02-18 02:51:45 +01:00
|
|
|
migrate: vendor
|
|
|
|
vendor/bin/phinx migrate --environment=$(ENV)
|
|
|
|
|
|
|
|
|
2020-02-18 03:09:59 +01:00
|
|
|
install: vendor migrate
|
2020-02-18 02:51:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf vendor/
|
|
|
|
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -rf .
|
2020-02-18 03:09:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
fix:
|
|
|
|
tests/php-cs-fixer/run.php fix
|
|
|
|
tests/phpstan/run.php analyse
|