mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00:00
15 lines
288 B
Makefile
15 lines
288 B
Makefile
all: parser.y.go lexer.l.go
|
|
|
|
parser.y.go: parser.y
|
|
go tool yacc -o parser.y.go -v "" parser.y
|
|
|
|
lexer.l.go: parser.y.go lexer.l
|
|
golex lexer.l
|
|
|
|
test: all
|
|
go test -i github.com/matttproud/prometheus/rules
|
|
go test github.com/matttproud/prometheus/rules
|
|
|
|
clean:
|
|
rm lexer.l.go parser.y.go
|