From 8fd9fc1ff951541808a86d8882715d06b03cdf30 Mon Sep 17 00:00:00 2001 From: Blaster4385 Date: Tue, 23 Jul 2024 01:29:15 +0530 Subject: [PATCH] build: added Makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4637487 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +.PHONY: fileshare clean + +fileshare: + rm -rf server/dist + cp -r client server/dist + cd server && go build -ldflags "-s -w" + mv server/fileshare fileshare + +clean: + rm -rf server/dist + rm fileshare