From 95ec03768cce0f519bca0f5b573fb88d64c6b23c Mon Sep 17 00:00:00 2001 From: LandaMm Date: Sun, 18 May 2025 00:00:46 +0200 Subject: [PATCH] feat: build application make --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..09ce6b9 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ + +BINDIR := $(CURDIR)/bin +BINNAME ?= hspguard + +SRC := $(shell find . -type f -name '*.go' -not -path "./vendor/*") + +.PHONY: all +all: build + +.PHONY: build +build: $(BINDIR)/$(BINNAME) + +$(BINDIR)/$(BINNAME): $(SRC) + go build -o '$(BINDIR)'/$(BINNAME) ./cmd/$(BINNAME)