From 5a0afc0a72635b2a1f19a6e2e8cb6e9fc1b84fc0 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Thu, 27 May 2021 06:57:25 +0100 Subject: [PATCH] Remove old `tg` binary before building `erigon` binary (#2023) * Update Makefile * Use -f flag --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 37964a55e..096afc79c 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ geth: mdbx erigon: go-version mdbx @echo "Building Erigon" + rm -f $(GOBIN)/tg # Remove old binary to prevent confusion where users still use it because of the scripts $(GOBUILD) -o $(GOBIN)/erigon ./cmd/erigon @echo "Done building." @echo "Run \"$(GOBIN)/erigon\" to launch Erigon."