raspisms/Makefile

36 lines
493 B
Makefile
Raw Normal View History

2020-02-18 03:57:26 +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
./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 03:57:26 +01:00
install -d $(INSTALL_DIR)
install . $(INSTALL_DIR)
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:
tests/php-cs-fixer/run.php fix
tests/phpstan/run.php analyse