generated from WillAbides/goproject-tmpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 784 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
GOCMD=go
GOBUILD=$(GOCMD) build
PATH := "${CURDIR}/bin:$(PATH)"
.PHONY: gobuildcache
bin/golangci-lint:
script/bindown install $(notdir $@)
bin/shellcheck:
script/bindown install $(notdir $@)
bin/gobin:
script/bindown install $(notdir $@)
HANDCRAFTED_REV := 082e94edadf89c33db0afb48889c8419a2cb46a9
bin/handcrafted: bin/gobin
GOBIN=${CURDIR}/bin \
bin/gobin github.com/willabides/handcrafted@$(HANDCRAFTED_REV)
GOFUMPT_REV := 4fd085cb6d5fb7ec2bb2c6fc8039ec3a48355807
bin/gofumpt: bin/gobin
GOBIN=${CURDIR}/bin \
bin/gobin mvdan.cc/gofumpt@$(GOFUMPT_REV)
bin/eventbridge-pipe: gobuildcache
${GOBUILD} -o $@ ./cmd/eventbridge-pipe
bin/eventgrid-pipe: gobuildcache
${GOBUILD} -o $@ ./cmd/eventgrid-pipe
bin/splunk-pipe: gobuildcache
${GOBUILD} -o $@ ./cmd/splunk-pipe