Makefile: use automatic variables for bindata.go

This change can easily let us expand the rule by adding more files as a
dependency.  Even better, we can define a variable to hold all these
external, binary resources.
This commit is contained in:
Christos Kontas 2018-02-01 10:20:12 +01:00
parent a9172824a2
commit abed8fd61c
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ all: bin/pomo
clean:
-rm -fv bin/* docs/*
bindata.go:
go-bindata -pkg main -o $@ tomato-icon.png
bindata.go: tomato-icon.png
go-bindata -pkg main -o $@ $^
test:
go test ./...