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_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
|
||||||
|
@ -3,5 +3,6 @@ package main
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
fmt.Println("Hello, world.")
|
fmt.Println("Hello, world.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user