Browse Source

Build: Automatically format parser builds

Leonardo Di Donato 7 years ago
parent
commit
dff179b044
1 changed files with 3 additions and 1 deletions
  1. 3 1
      makefile

+ 3 - 1
makefile

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