From 6d1569ecacb12d5c9652ccbcaa59989f3331ec00 Mon Sep 17 00:00:00 2001 From: Kostas Drakontidis Date: Fri, 25 Jul 2025 16:19:53 +0300 Subject: [PATCH] Added make clean --- client/backend/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 client/backend/Makefile diff --git a/client/backend/Makefile b/client/backend/Makefile new file mode 100644 index 0000000..00afb28 --- /dev/null +++ b/client/backend/Makefile @@ -0,0 +1,18 @@ +CC := go +NAME := peer +OUT := bin/ + +all: clean windows linux darwin + +windows: peer.go types.go + GOOS=$@ GOARCH=amd64 $(CC) build -o $(OUT)$(NAME)_$@.exe $^ + +linux: peer.go types.go + GOOS=$@ GOARCH=amd64 $(CC) build -o $(OUT)$(NAME)_$@ $^ + +darwin: peer.go types.go + GOOS=$@ GOARCH=amd64 $(CC) build -o $(OUT)$(NAME)_$@_amd64 $^ + GOOS=$@ GOARCH=arm64 $(CC) build -o $(OUT)$(NAME)_$@_arm64 $^ + +clean: + $(RM) -r bin/ \ No newline at end of file