mirror of
https://github.com/F1bonacc1/process-compose.git
synced 2024-08-17 07:20:39 +03:00
24 lines
584 B
Makefile
24 lines
584 B
Makefile
|
BINARY_NAME=process-compose
|
||
|
|
||
|
.PHONY: test run
|
||
|
|
||
|
buildrun: build run
|
||
|
|
||
|
build:
|
||
|
go build -o bin/${BINARY_NAME} ./src
|
||
|
compile:
|
||
|
GOOS=linux GOARCH=386 go build -o bin/${BINARY_NAME}-linux-386 ./src
|
||
|
GOOS=linux GOARCH=amd64 go build -o bin/${BINARY_NAME}-linux-amd64 ./src
|
||
|
GOOS=linux GOARCH=arm64 go build -o bin/${BINARY_NAME}-linux-arm64 ./src
|
||
|
GOOS=linux GOARCH=arm go build -o bin/${BINARY_NAME}-linux-arm ./src
|
||
|
test:
|
||
|
go test -cover ./src
|
||
|
coverhtml:
|
||
|
go test -coverprofile=coverage.out ./src
|
||
|
go tool cover -html=coverage.out
|
||
|
|
||
|
run:
|
||
|
./bin/${BINARY_NAME}
|
||
|
|
||
|
clean:
|
||
|
rm bin/${BINARY_NAME}*
|