feat: build application make
This commit is contained in:
14
Makefile
Normal file
14
Makefile
Normal 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)
|
Reference in New Issue
Block a user