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 <robin@jarry.cc>
This commit is contained in:
Robin Jarry 2022-09-20 11:37:22 +02:00
parent ddca71bcfd
commit fcd75ab529

View file

@ -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