raspisms/Makefile

34 lines
437 B
Makefile
Raw Normal View History

2020-02-18 02:51:45 +01:00
.PHONY: all install composer_install move_dir migrate
INSTALL_DIR=$(DESTDIR)/opt/raspisms2
ENV=prod
all: install
vendor: composer.phar composer.json
./composer.phar self-update
./composer.phar validate
./composer.phar install
migrate: vendor
vendor/bin/phinx migrate --environment=$(ENV)
move_dir:
mv . $(INSTALL_DIR)
cd $(INSTALL_DIR)
install: move_dir vendor migrate
clean:
rm -rf vendor/
uninstall:
rm -rf .