cleanup Makefile
This commit is contained in:
52
Makefile
52
Makefile
@@ -6,54 +6,42 @@
|
|||||||
CURR_PATH=$(shell pwd)
|
CURR_PATH=$(shell pwd)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: build
|
all: install
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
@find bootstrap/cache -type f -not -name '.gitignore' -print0 | xargs -0 -r rm --
|
||||||
|
@find storage/app/public -type f -not -name '.gitignore' -print0 | xargs -0 -r rm --
|
||||||
|
@find storage/app -type f -not -name '.gitignore' -not -name public -print0 | xargs -0 -r rm --
|
||||||
|
@find storage/framework/cache -type f -not -name '.gitignore' -print0 | xargs -0 -r rm --
|
||||||
|
@find storage/framework/sessions -type f -not -name '.gitignore' -print0 | xargs -0 -r rm --
|
||||||
|
@find storage/framework/views -type f -not -name '.gitignore' -print0 | xargs -0 -r rm --
|
||||||
|
@find storage/logs -type f -not -name '.gitignore' -print0 | xargs -0 -r rm --
|
||||||
|
@php artisan route:clear
|
||||||
|
@php artisan config:clear
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
@composer install --no-interaction
|
@composer install --no-interaction
|
||||||
@php artisan route:clear
|
|
||||||
@php artisan config:clear
|
|
||||||
@composer dump-autoload
|
|
||||||
|
|
||||||
.PHONY: db
|
|
||||||
db:
|
|
||||||
@php artisan database:create
|
|
||||||
@php artisan migrate:refresh --seed
|
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: build db
|
install: build
|
||||||
|
@php artisan database:create
|
||||||
|
@php artisan migrate --seed
|
||||||
|
@make import-airports
|
||||||
@echo "Done!"
|
@echo "Done!"
|
||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update: db
|
update: clean build
|
||||||
|
@php artisan migrate
|
||||||
@php artisan route:clear
|
|
||||||
@php artisan config:clear
|
|
||||||
@echo "Done!"
|
@echo "Done!"
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
@find bootstrap/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm --
|
|
||||||
@find storage/app/public -type f -not -name '.gitignore' -print0 | xargs -0 rm --
|
|
||||||
@find storage/app -type f -not -name '.gitignore' -not -name public -print0 | xargs -0 rm --
|
|
||||||
@find storage/framework/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm --
|
|
||||||
@find storage/framework/sessions -type f -not -name '.gitignore' -print0 | xargs -0 rm --
|
|
||||||
@find storage/framework/views -type f -not -name '.gitignore' -print0 | xargs -0 rm --
|
|
||||||
@find storage/logs -type f -not -name '.gitignore' -print0 | xargs -0 rm --
|
|
||||||
@php artisan route:clear
|
|
||||||
@php artisan config:clear
|
|
||||||
|
|
||||||
.PHONY: reset
|
.PHONY: reset
|
||||||
reset: clean
|
reset: clean
|
||||||
@php artisan database:create --reset
|
@php artisan database:create --reset
|
||||||
|
@php artisan migrate:refresh --seed
|
||||||
@make install
|
@make install
|
||||||
|
|
||||||
.PHONY: unittest-db
|
|
||||||
unittest-db:
|
|
||||||
-@rm -f database/unittest.sqlite
|
|
||||||
sqlite3 database/unittest.sqlite ""
|
|
||||||
php artisan migrate:refresh --env unittest
|
|
||||||
|
|
||||||
.PHONY: tests
|
.PHONY: tests
|
||||||
tests: test
|
tests: test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user