Files
qulay/Makefile
T
2026-03-25 15:09:11 +03:00

23 lines
373 B
Makefile

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)