2020-02-18 04:29:48 +01:00
|
|
|
.PHONY: all install composer_install vendor migrate clean fix:
|
2020-02-18 02:51:45 +01:00
|
|
|
|
|
|
|
INSTALL_DIR=$(DESTDIR)/opt/raspisms2
|
|
|
|
ENV=prod
|
|
|
|
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
|
|
|
|
vendor: composer.phar composer.json
|
2020-02-18 04:29:48 +01:00
|
|
|
raspisms/composer.phar self-update
|
|
|
|
raspisms/composer.phar install
|
2020-02-18 02:51:45 +01:00
|
|
|
|
|
|
|
|
2020-02-18 03:09:59 +01:00
|
|
|
|
2020-02-18 02:51:45 +01:00
|
|
|
migrate: vendor
|
2020-02-18 04:29:48 +01:00
|
|
|
raspisms/vendor/bin/phinx migrate --environment=$(ENV)
|
2020-02-18 02:51:45 +01:00
|
|
|
|
|
|
|
|
2020-02-18 03:09:59 +01:00
|
|
|
install: vendor migrate
|
2020-02-18 04:20:12 +01:00
|
|
|
chmod -R 750 .
|
|
|
|
install -m750 -d $(INSTALL_DIR)
|
2020-02-18 04:29:48 +01:00
|
|
|
install -d ./src $(INSTALL_DIR)
|
2020-02-18 04:20:12 +01:00
|
|
|
|
2020-02-18 03:47:18 +01:00
|
|
|
|
2020-02-18 02:51:45 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf vendor/
|
|
|
|
|
|
|
|
|
|
|
|
uninstall:
|
2020-02-18 03:57:26 +01:00
|
|
|
rm -rf $(INSTALL_DIR)
|
2020-02-18 03:09:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
fix:
|
2020-02-18 04:29:48 +01:00
|
|
|
raspisms/tests/php-cs-fixer/run.php fix
|
|
|
|
raspisms/tests/phpstan/run.php analyse
|