mirror of
https://github.com/EricNeid/go-sleep.git
synced 2025-01-10 17:45:07 +00:00
Cleanup makefile
This commit is contained in:
parent
8c6fd3c110
commit
e458dabf75
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
cmd/sleep/sleep.exe
|
cmd/sleep/sleep.exe
|
||||||
cmd/sleep/sleep
|
cmd/sleep/sleep
|
||||||
|
sleep.exe
|
||||||
|
sleep
|
14
makefile
14
makefile
@ -1,10 +1,16 @@
|
|||||||
all: test build build-windows
|
all: test build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
cd cmd/sleep && go build
|
go build ./cmd/sleep/
|
||||||
|
|
||||||
build-windows:
|
build-linux-amd64:
|
||||||
cd cmd/sleep && GOOS=windows GOARCH=amd64 go build
|
GOOS=linux GOARCH=amd64 go build ./cmd/sleep/
|
||||||
|
|
||||||
|
build-linux-arm:
|
||||||
|
GOOS=linux GOARCH=arm go build ./cmd/sleep/
|
||||||
|
|
||||||
|
build-windows-amd64:
|
||||||
|
GOOS=windows GOARCH=amd64 go build ./cmd/sleep/
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test ./...
|
go test ./...
|
Loading…
Reference in New Issue
Block a user