build: added Makefile

This commit is contained in:
Blaster4385 2024-07-23 01:29:15 +05:30
parent 9b832eaaec
commit 8fd9fc1ff9

11
Makefile Normal file
View file

@ -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