2024-01-29 21:01:31 +00:00
|
|
|
# note: call scripts from /scripts
|
2024-01-29 22:03:18 +00:00
|
|
|
GO_MAIN=./cmd/tld/tld.go
|
|
|
|
GO_TEST=./test
|
|
|
|
|
2024-02-02 21:42:19 +00:00
|
|
|
## install: Install missing dependencies.
|
2024-01-29 22:03:18 +00:00
|
|
|
install:
|
|
|
|
go install $(GO_MAIN)
|
|
|
|
|
2024-02-02 21:42:19 +00:00
|
|
|
## Run application.
|
2024-01-29 22:03:18 +00:00
|
|
|
run:
|
|
|
|
go run $(GO_MAIN)
|
|
|
|
|
2024-02-02 21:42:19 +00:00
|
|
|
## Build application.
|
2024-01-29 22:03:18 +00:00
|
|
|
build:
|
|
|
|
go build $(GO_MAIN)
|
|
|
|
|
2024-02-02 21:42:19 +00:00
|
|
|
## Run units tests.
|
2024-01-29 22:03:18 +00:00
|
|
|
test:
|
2024-02-02 21:42:19 +00:00
|
|
|
go test $(GO_TEST)
|
2024-01-29 22:03:18 +00:00
|
|
|
|
2024-02-02 21:42:19 +00:00
|
|
|
## Format code style.
|
2024-01-29 22:03:18 +00:00
|
|
|
format:
|
|
|
|
go fmt $(GO_MAIN)
|
|
|
|
go fmt $(GO_TEST)
|
2024-02-02 21:42:19 +00:00
|
|
|
|
|
|
|
.PHONY: install run build test format
|