raspisms/Makefile

34 lines
425 B
Makefile

.PHONY: all install composer_install move_dir migrate fix
INSTALL_DIR=$(DESTDIR)/opt/raspisms2
ENV=prod
all: install
vendor: composer.phar composer.json
./composer.phar self-update
./composer.phar install
migrate: vendor
vendor/bin/phinx migrate --environment=$(ENV)
install: vendor migrate
clean:
rm -rf vendor/
uninstall:
rm -rf .
fix:
tests/php-cs-fixer/run.php fix
tests/phpstan/run.php analyse