mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Run gofmt when building assets
This commit is contained in:
3
Makefile
3
Makefile
@@ -12,9 +12,12 @@ STATICFILES := $(wildcard static/*)
|
||||
TEMPLATES := $(wildcard templates/*)
|
||||
bindata.go: $(STATICFILES) $(TEMPLATES)
|
||||
go-bindata -tags '!debug' static/... templates/...
|
||||
go fmt
|
||||
|
||||
bindata-debug.go: $(STATICFILES) $(TEMPLATES)
|
||||
go-bindata -tags 'debug' -o bindata-debug.go -debug static/... templates/...
|
||||
go fmt
|
||||
|
||||
|
||||
.PHONY: devel
|
||||
devel: bindata-debug.go
|
||||
|
Reference in New Issue
Block a user