File: Makefile

package info (click to toggle)
golang-github-client9-reopen 1.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 112 kB
  • sloc: sh: 41; makefile: 39
file content (38 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (3)
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

build:  ## build and lint
	go build ./...
	gometalinter \
                --vendor \
                --vendored-linters \
                --deadline=60s \
                --disable-all \
                --enable=goimports \
                --enable=vetshadow \
                --enable=varcheck \
                --enable=structcheck \
                --enable=deadcode \
                --enable=ineffassign \
                --enable=unconvert \
                --enable=goconst \
                --enable=golint \
                --enable=gosimple \
                --enable=gofmt \
                --enable=misspell \
                --enable=staticcheck \
                .
test:  ## just test
	go test -cover .

clean: ## cleanup
	rm -f ./example1/example1
	rm -f ./example2/example2
	go clean ./...
	git gc

# https://www.client9.com/self-documenting-makefiles/
help:
	@awk -F ':|##' '/^[^\t].+?:.*?##/ {\
        printf "\033[36m%-30s\033[0m %s\n", $$1, $$NF \
        }' $(MAKEFILE_LIST)
.DEFAULT_GOAL=help
.PHONY=help