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:
parent
ddca71bcfd
commit
fcd75ab529
1 changed files with 1 additions and 0 deletions
1
Makefile
1
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
|
||||
|
|
Loading…
Reference in a new issue