php-parser/Makefile

26 lines
442 B
Makefile
Raw Normal View History

2017-11-07 06:21:38 +00:00
# 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
2017-12-01 13:36:46 +00:00
all: parser.go scanner.go
2017-11-23 15:33:47 +00:00
rm -f y.output
gofmt -l -s -w *.go
2017-11-07 06:21:38 +00:00
go build
run: all
./php-parser
2017-12-01 13:36:46 +00:00
scanner.go: scanner.l
2017-11-23 15:33:47 +00:00
golex -o $@ $<
parser.go: parser.y
goyacc -o $@ $<
2017-11-07 06:21:38 +00:00
clean:
rm -f php-parser.go lex.yy.go y.output *~
nuke: clean
rm -f example