# Makefile Snippets

Laravel Based Project
---------------------

#### Install Dependencies

```makefile
.PHONY: local/install
local/install:
	composer install
```

#### Update Dependencies

```makefile
.PHONY: local/update
local/update:
	composer update
```

#### Run Local Instance

```makefile
DEVHOST := 127.27.0.1
DEVPORT := 8081

.PHONY: local/up
local/up:
	php artisan serve --host="$(DEVHOST)" --port="$(DEVPORT)"
```

#### Clean Wrokspace


```makefile
.PHONY: clean
clean:
	-rm .phpunit.cache
	-rm .phpunit.result.cache

.PHONY: distclean
distclean: clean
	git clean --force -Xd
```