-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
39 lines (31 loc) · 1.11 KB
/
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
34
35
36
37
38
39
# =============================================================================
# Default target
# =============================================================================
all: build
# =============================================================================
# Build
# =============================================================================
.PHONY: build
build: format lint mod-update
# =============================================================================
# Format
# =============================================================================
.PHONY: format
format:
@echo "Formatting ..."
@gofmt -s -l -w .
# =============================================================================
# Lint
# =============================================================================
.PHONY: lint
lint:
@echo "Linting ..."
@golangci-lint run
# =============================================================================
# Modules
# =============================================================================
.PHONY: mod-update
mod-update:
@echo "Updating modules ..."
@go get -d -u -v ./...
@go mod tidy