From fcd75ab52973a914bfa5af8e92617c551b59fc1f Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 20 Sep 2022 11:37:22 +0200 Subject: [PATCH] mk: make it obvious that GOFLAGS change cause a rebuild We had a few issues with that for downstream distros recently. Signed-off-by: Robin Jarry --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 8183778..fa385e7 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ build_cmd:=$(GO) build $(BUILD_OPTS) $(GOFLAGS) -ldflags "$(GO_LDFLAGS)" -o aerc _!=grep -sqFx '$(build_cmd)' .aerc.d || rm -f .aerc.d .aerc.d: + @echo 'GOFLAGS have changed, recompiling' @echo '$(build_cmd)' > $@ aerc: $(GOSRC) .aerc.d