mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 09:26:27 +02:00
create makefile
This commit is contained in:
parent
2519df2c2a
commit
6a0e214cc3
2 changed files with 33 additions and 9 deletions
33
Makefile
Normal file
33
Makefile
Normal file
|
@ -0,0 +1,33 @@
|
|||
.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 .
|
Loading…
Add table
Add a link
Reference in a new issue