feat: add Makefile and improve building

This commit is contained in:
kaveh-ahangar committed 2023-05-04 19:20:52 +03:30
1 parent 20bfd71cf1
commit 9e63b0e2b3
3 files changed
+15

No files matched your search

+1
View File
@@ -12,3 +12,4 @@ release/
access.log
error.log
.cache
/build/x-ui
+14
View File
@@ -0,0 +1,14 @@
all: build
init:
# create dirs
mkdir -p ./build
clear:
# clear dirs
rm -rf ./build
build: clear init
# build
go build -o ./build/x-ui ./cmd/x-ui/main.go
View File
File renamed without changes.