update Makefile

This commit is contained in:
z7zmey
2018-02-24 00:17:51 +02:00
parent 91eb67279d
commit 90f451293d
2 changed files with 16 additions and 5 deletions

View File

@@ -1,12 +1,14 @@
PHPFILE=example.php
all: compile run
all: compile fmt build run
fmt:
find . -type f -iregex '.*\.go' -exec gofmt -l -s -w '{}' +
build:
find . -type f -iregex '.*\.go' -exec gofmt -l -s -w '{}' +
go build
run: build
run:
./php-parser $(PHPFILE)
test: