summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhuker667 <huker@tuta.io>2026-03-25 15:09:11 +0300
committerhuker667 <huker@tuta.io>2026-03-25 15:09:11 +0300
commitc021e8e6c2f54d8315df111243e501bf1ba648b1 (patch)
treee7ec2d5d6c0bd2524917671312ebf44e41bcf352 /Makefile
parente45f3693567570a8eb2436bd38a4ea4b9f89b29c (diff)
downloadqulay-c021e8e6c2f54d8315df111243e501bf1ba648b1.tar.gz
qulay-c021e8e6c2f54d8315df111243e501bf1ba648b1.tar.bz2
qulay-c021e8e6c2f54d8315df111243e501bf1ba648b1.zip
add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a7970e1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+BINARY=qulay
+SRC=main.go
+PREFIX=/usr
+
+.PHONY: all clean install uninstall deps
+
+all: deps
+ go build -ldflags="-s -w" -o $(BINARY) $(SRC)
+
+deps:
+ go mod tidy
+
+install: all
+ install -Dm755 $(BINARY) $(PREFIX)/bin/$(BINARY)
+ @echo "qulay installed to $(PREFIX)/bin"
+
+uninstall:
+ rm -f $(PREFIX)/bin/$(BINARY)
+ @echo "qulay removed from $(PREFIX)/bin"
+
+clean:
+ rm -f $(BINARY)