Compare commits
2 Commits
0c677d9f8c
...
6e6ea3c5a9
Author | SHA1 | Date | |
---|---|---|---|
6e6ea3c5a9
|
|||
95ec03768c
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -11,6 +11,8 @@
|
|||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|
||||||
|
bin/*
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
|
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