Debian Codegraph @

Makefile

raw
1 .DEFAULT_GOAL = all
2
3 version := $(shell git rev-list --count HEAD).$(shell git rev-parse --short HEAD)
4
5 name := uarand
6 package := github.com/corpix/$(name)
7
8 .PHONY: all
9 all:: useragents.go
10
11 .PHONY: test
12 test:
13 go test -v ./...
14
15 .PHONY: lint
16 lint:
17 .PHONY: lint
18 lint:
19 golangci-lint --color=always \
20 --exclude='uses unkeyed fields' \
21 --exclude='type .* is unused' \
22 --exclude='should merge variable declaration with assignment on next line' \
23 --deadline=120s \
24 run ./...
25
26 .PHONY: check
27 check: lint test
28
29 .PHONY: useragents.go
30 useragents.go:
31 ./scripts/fetch-user-agents | ./scripts/generate-useragents-go $(name) > $@
32 go fmt $@