From abed8fd61c8633e64b1f26dc22b8d8383d99a040 Mon Sep 17 00:00:00 2001 From: Christos Kontas Date: Thu, 1 Feb 2018 10:20:12 +0100 Subject: [PATCH] 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. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b9812e2..3016449 100644 --- a/Makefile +++ b/Makefile @@ -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 ./...