Explorar o código

Build: Automatically format parser builds

Leonardo Di Donato %!s(int64=7) %!d(string=hai) anos
pai
achega
dff179b044
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      makefile

+ 3 - 1
makefile

@@ -1,7 +1,9 @@
 SHELL := /bin/bash
 SHELL := /bin/bash
 
 
 machine.go: machine.go.rl
 machine.go: machine.go.rl
-	ragel -Z -G2 -o $@ $<
+	ragel -Z -G2 -e -o $@ $<
+	@gofmt -w -s $@
+	@sed -i '/^\/\/line/d' $@
 
 
 .PHONY: build
 .PHONY: build
 build: machine.go
 build: machine.go