hcl package for hcl parsing
This commit is contained in:
parent
358b43ddbc
commit
d5f339015f
9
Makefile
9
Makefile
@ -1,12 +1,13 @@
|
|||||||
default: test
|
default: test
|
||||||
|
|
||||||
fmt: y.go json/y.go
|
fmt: hcl/y.go json/y.go
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
|
|
||||||
test: y.go json/y.go
|
test: hcl/y.go json/y.go
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
y.go: parse.y
|
hcl/y.go: hcl/parse.y
|
||||||
|
cd hcl && \
|
||||||
go tool yacc -p "hcl" parse.y
|
go tool yacc -p "hcl" parse.y
|
||||||
|
|
||||||
json/y.go: json/parse.y
|
json/y.go: json/parse.y
|
||||||
@ -14,7 +15,7 @@ json/y.go: json/parse.y
|
|||||||
go tool yacc -p "json" parse.y
|
go tool yacc -p "json" parse.y
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f y.go
|
rm -f hcl/y.go
|
||||||
rm -f json/y.go
|
rm -f json/y.go
|
||||||
|
|
||||||
.PHONY: default test
|
.PHONY: default test
|
||||||
|
Loading…
Reference in New Issue
Block a user