🔨 Update development scripts.

This commit is contained in:
Александр Колосов 2024-02-03 02:42:19 +05:00
parent 0986060000
commit 7a981f9836
2 changed files with 9 additions and 1 deletions

View File

@ -2,18 +2,25 @@
GO_MAIN=./cmd/tld/tld.go GO_MAIN=./cmd/tld/tld.go
GO_TEST=./test GO_TEST=./test
## install: Install missing dependencies.
install: install:
go install $(GO_MAIN) go install $(GO_MAIN)
## Run application.
run: run:
go run $(GO_MAIN) go run $(GO_MAIN)
## Build application.
build: build:
go build $(GO_MAIN) go build $(GO_MAIN)
## Run units tests.
test: test:
go test ${GO_TEST} go test $(GO_TEST)
## Format code style.
format: format:
go fmt $(GO_MAIN) go fmt $(GO_MAIN)
go fmt $(GO_TEST) go fmt $(GO_TEST)
.PHONY: install run build test format

View File

@ -3,5 +3,6 @@ package main
import "fmt" import "fmt"
func main() { func main() {
fmt.Println("Hello, world.") fmt.Println("Hello, world.")
} }