diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
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) |