Compare commits

...

2 Commits

Author SHA1 Message Date
6e6ea3c5a9 feat: ignore bin files 2025-05-18 00:00:51 +02:00
95ec03768c feat: build application make 2025-05-18 00:00:46 +02:00
2 changed files with 16 additions and 0 deletions

2
.gitignore vendored
View File

@ -11,6 +11,8 @@
# Test binary, built with `go test -c`
*.test
bin/*
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

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)