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)