mirror of
https://github.com/dnwSilver/tld.git
synced 2025-04-28 07:56:18 +00:00
🔨 Update development scripts.
This commit is contained in:
parent
0986060000
commit
7a981f9836
9
Makefile
9
Makefile
@ -2,18 +2,25 @@
|
||||
GO_MAIN=./cmd/tld/tld.go
|
||||
GO_TEST=./test
|
||||
|
||||
## install: Install missing dependencies.
|
||||
install:
|
||||
go install $(GO_MAIN)
|
||||
|
||||
## Run application.
|
||||
run:
|
||||
go run $(GO_MAIN)
|
||||
|
||||
## Build application.
|
||||
build:
|
||||
go build $(GO_MAIN)
|
||||
|
||||
## Run units tests.
|
||||
test:
|
||||
go test ${GO_TEST}
|
||||
go test $(GO_TEST)
|
||||
|
||||
## Format code style.
|
||||
format:
|
||||
go fmt $(GO_MAIN)
|
||||
go fmt $(GO_TEST)
|
||||
|
||||
.PHONY: install run build test format
|
||||
|
@ -3,5 +3,6 @@ package main
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
|
||||
fmt.Println("Hello, world.")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user