-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (36 loc) · 842 Bytes
/
Copy pathMakefile
File metadata and controls
51 lines (36 loc) · 842 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: build run clean test setup update version help
BINARY=omniscan
BUILD_DIR=build
VERSION=$(shell git describe --tags --always 2>/dev/null || echo "dev")
LDFLAGS=-s -w -X github.com/Eliahhango/OmniScan/internal/version.Version=$(VERSION)
build:
go build -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY) ./cmd/omniscan
update:
go install -ldflags="$(LDFLAGS)" github.com/Eliahhango/OmniScan/cmd/omniscan@latest; \
omniscan setup
version:
@omniscan version
run:
go run ./cmd/omniscan
tui:
go run ./cmd/omniscan tui
setup:
go run ./cmd/omniscan setup
test:
go test ./...
clean:
go clean -cache
go clean -i ./...
go clean ./...
lint:
go vet ./...
deps:
go mod tidy
go mod verify
all: deps lint build
install:
go install ./cmd/omniscan
quick:
go run ./cmd/omniscan tui
docker:
docker build -t omniscan:latest .