Forráskód Böngészése

Build: Automatically format parser builds

Leonardo Di Donato 8 éve
szülő
commit
dff179b044
1 módosított fájl, 3 hozzáadás és 1 törlés
  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