Added make clean

This commit is contained in:
2025-07-25 16:19:53 +03:00
parent 90882b33dd
commit 6d1569ecac
+18
View File
@@ -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/