From 1387c8697f36fcf108076ff70f61843359abc051 Mon Sep 17 00:00:00 2001 From: Nikita Koifman Date: Tue, 6 Feb 2024 21:54:00 +0300 Subject: [PATCH] Update Makefile Update makefile to work with Windows. By adding .exe extension to executables if Windows OS detected --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 09f5785..734a85f 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,18 @@ +OSFLAG := +ifeq ($(OS),Windows_NT) + OSFLAG = .exe +endif + build-binaries: go clean -modcache - cd ./prysm-stratis && go build -o=../bin/beacon-chain ./cmd/beacon-chain - cd ./go-stratis && go build -o=../bin/geth ./cmd/geth + cd ./prysm-stratis && go build -o=../bin/beacon-chain$(OSFLAG) ./cmd/beacon-chain + cd ./go-stratis && go build -o=../bin/geth$(OSFLAG) ./cmd/geth init-geth-testnet: - ./bin/geth --datadir=data/testnet/geth init configs/testnet/genesis.json + ./bin/geth$(OSFLAG) --datadir=data/testnet/geth init configs/testnet/genesis.json run-geth-testnet: - ./bin/geth \ + ./bin/geth$(OSFLAG) \ --networkid=205205 \ --auroria \ --http \ @@ -25,7 +30,7 @@ run-geth-testnet: --syncmode=full run-beacon-testnet: - ./bin/beacon-chain \ + ./bin/beacon-chain$(OSFLAG) \ --p2p-static-id \ --auroria \ --datadir=data/testnet/beacon \