From 7ee3f616f8fa1ef597098c9565fc2a533997018b Mon Sep 17 00:00:00 2001 From: vadim Date: Fri, 5 Jan 2018 13:17:59 +0200 Subject: [PATCH] improve Makefile allow call `make run PHPFILE=/path/to/php/file/to/parse` --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f47094..e16812f 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ # license that can be found in the LICENSE file. # blame: jnml, labs.nic.cz +PHPFILE=example.php all: ./parser/parser.go ./parser/scanner.go rm -f y.output @@ -10,7 +11,7 @@ all: ./parser/parser.go ./parser/scanner.go go build run: all - ./php-parser example.php + ./php-parser $(PHPFILE) test: all go test ./test/...