feat: build application make

This commit is contained in:
2025-05-18 00:00:46 +02:00
parent 0c677d9f8c
commit 95ec03768c

14
Makefile Normal file
View File

@ -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)