hcl/Makefile
Mitchell Hashimoto 358b43ddbc JSON parser
2014-08-02 11:38:41 -07:00

21 lines
284 B
Makefile

default: test
fmt: y.go json/y.go
go fmt ./...
test: y.go json/y.go
go test ./...
y.go: parse.y
go tool yacc -p "hcl" parse.y
json/y.go: json/parse.y
cd json/ && \
go tool yacc -p "json" parse.y
clean:
rm -f y.go
rm -f json/y.go
.PHONY: default test