~chrisppy/go-barefeed

go-barefeed/Makefile -rw-r--r-- 748 bytes
f9d9820fChris Palmer fix doc link in readme 8 months ago
                                                                                
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
34
35
36
37
38
39
.POSIX:
.SUFFIXES:

GO = go
GOFLAGS =

goflags = $(GOFLAGS)

all: barefeed
barefeed:
	$(GO) build $(goflags)
clean:
	$(GO) mod tidy

check: clean tidy test format lint security dependencies 
	make clean
dependencies:
	$(GO) install github.com/psampaz/go-mod-outdated@latest
	$(GO) list -u -m -json all | go-mod-outdated -direct -ci
format:
	$(GO) fmt -x ./...
	$(GO) vet ./...
lint:
	$(GO) install honnef.co/go/tools/cmd/staticcheck@latest
	$(GO) install github.com/kisielk/errcheck@latest
	staticcheck ./...
	errcheck ./...
security:
	$(GO) install github.com/securego/gosec/cmd/gosec@latest
	gosec ./... 
test:
	$(GO) test -v ./...
tidy:
	$(GO) mod tidy

gen:
	$(GO) run git.sr.ht/~sircmpwn/go-bare/cmd/gen \
		-p barefeed schema.bare schema.go