cleanup makefile a bit

This commit is contained in:
Nabeel Shahzad
2017-12-06 17:31:20 -06:00
parent f0309e65de
commit a2bd4ff180
2 changed files with 27 additions and 18 deletions

View File

@@ -11,17 +11,26 @@ all: build
.PHONY: build
build:
@composer install --no-interaction
@php artisan config:cache
@php artisan route:clear
@php artisan config:clear
@composer dump-autoload
.PHONY: db
db:
@php artisan database:create --reset
@php artisan database:create
@php artisan migrate:refresh --seed
.PHONY: install
install: build db
@echo "Done!"
.PHONY: update
update: db
@php artisan route:clear
@php artisan config:clear
@echo "Done!"
.PHONY: clean
clean:
@find bootstrap/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm --
@@ -31,12 +40,12 @@ clean:
@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 --
@composer dump-autoload
@php artisan route:clear
@php artisan config:clear
.PHONY: reset
reset: clean
@php artisan database:create --reset
@make install
.PHONY: unittest-db