hcl package for hcl parsing
This commit is contained in:
parent
358b43ddbc
commit
d5f339015f
11
Makefile
11
Makefile
@ -1,20 +1,21 @@
|
||||
default: test
|
||||
|
||||
fmt: y.go json/y.go
|
||||
fmt: hcl/y.go json/y.go
|
||||
go fmt ./...
|
||||
|
||||
test: y.go json/y.go
|
||||
test: hcl/y.go json/y.go
|
||||
go test ./...
|
||||
|
||||
y.go: parse.y
|
||||
go tool yacc -p "hcl" parse.y
|
||||
hcl/y.go: hcl/parse.y
|
||||
cd hcl && \
|
||||
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 hcl/y.go
|
||||
rm -f json/y.go
|
||||
|
||||
.PHONY: default test
|
||||
|
Loading…
Reference in New Issue
Block a user