Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile14
-rw-r--r--cmd/x-ui/main.go (renamed from main.go)0
3 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 7ba03558..0ec48eda 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ release/
access.log
error.log
.cache
+/build/x-ui
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..ae396706
--- /dev/null
+++ b/Makefile
@@ -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 \ No newline at end of file
diff --git a/main.go b/cmd/x-ui/main.go
index 54ff6bf3..54ff6bf3 100644
--- a/main.go
+++ b/cmd/x-ui/main.go