ecload/Makefile

17 lines
504 B
Makefile
Raw Normal View History

2019-05-27 15:22:28 +00:00
.PHONY: all
2019-05-27 15:11:33 +00:00
all: bin/ecload bin/ecload.exe bin/ecload-mac
2019-05-27 15:22:28 +00:00
.PHONY: clean
clean:
rm -r bin/
2019-05-27 15:22:28 +00:00
go clean ./cmd/ecload/ ./pkg/ecload/
2019-05-27 15:11:33 +00:00
2019-05-28 09:28:20 +00:00
bin/ecload: cmd/ecload/*.go pkg/ecload/*.go
2019-05-27 15:22:28 +00:00
GOOS=linux GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
2019-05-27 15:11:33 +00:00
2019-05-28 09:28:20 +00:00
bin/ecload.exe: cmd/ecload/*.go pkg/ecload/*.go
2019-05-27 15:13:04 +00:00
GOOS=windows GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
2019-05-27 15:11:33 +00:00
2019-05-28 09:28:20 +00:00
bin/ecload-mac: cmd/ecload/*.go pkg/ecload/*.go
2019-05-27 15:13:04 +00:00
GOOS=darwin GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go