Cleanup makefile

This commit is contained in:
Eric Neidhardt 2020-08-10 21:22:57 +02:00
parent 8c6fd3c110
commit e458dabf75
2 changed files with 13 additions and 5 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
cmd/sleep/sleep.exe cmd/sleep/sleep.exe
cmd/sleep/sleep cmd/sleep/sleep
sleep.exe
sleep

View File

@ -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 ./...