diff options
| author | Shulhan <ms@kilabit.info> | 2025-02-03 21:36:10 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-02-03 21:40:14 +0700 |
| commit | a1635783753af6318ff192c1b41c16bb3f7fc76b (patch) | |
| tree | 02511e9615ac5c7a6c06958dc3f331ba07b7b413 /Makefile | |
| parent | 206fc899a4b90c85d3a0906eb4d13e9177082fbb (diff) | |
| download | gotp-a1635783753af6318ff192c1b41c16bb3f7fc76b.tar.xz | |
all: replace external linters with internal command
The fieldalignment and shadow linters are from golang.org/x/tools.
Those linters have an exposed APIs that can be combined into single
call or program, which provided by "pakakeh.go/lib/goanalysis".
This help reduce the tooling need to be installed or setup for
development.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,8 +1,7 @@ ## SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info> ## SPDX-License-Identifier: GPL-3.0-or-later -.PHONY: all test build install serve-doc - +.PHONY: all all: test lint build test: @@ -11,14 +10,15 @@ test: .PHONY: lint lint: - -fieldalignment ./... - -shadow ./... + go run ./internal/cmd/gocheck ./... go vet ./... +.PHONY: build build: mkdir -p _sys/usr/bin/ go build -o _sys/usr/bin/ ./cmd/... +.PHONY: install install: build install -D _sys/usr/bin/gotp $(DESTDIR)/usr/bin/gotp install -Dm644 \ @@ -35,6 +35,7 @@ install-darwin: build $(DESTDIR)/etc/bash_completion.d/gotp install -Dm644 COPYING $(DESTDIR)/share/gotp/COPYING +.PHONY: serve-doc serve-doc: ciigo serve _doc |
