ecload/Makefile

17 lines
408 B
Makefile

.PHONY: all
all: bin/ecload bin/ecload.exe bin/ecload-mac
.PHONY: clean
clean:
rm -r bin/
go clean ./cmd/ecload/ ./pkg/ecload/
bin/ecload:
GOOS=linux GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
bin/ecload.exe:
GOOS=windows GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
bin/ecload-mac:
GOOS=darwin GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go