php-parser/Makefile
2017-12-04 12:40:36 +02:00

23 lines
460 B
Makefile

# Copyright (c) 2011 CZ.NIC z.s.p.o. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# blame: jnml, labs.nic.cz
all: ./parser/parser.go ./parser/scanner.go
rm -f y.output
gofmt -l -s -w *.go
go build
run: all
./php-parser example.php
test: all
go test ./test/...
./parser/scanner.go: ./parser/scanner.l
golex -o $@ $<
./parser/parser.go: ./parser/parser.y
goyacc -o $@ $<