ecload/Makefile

17 lines
504 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: cmd/ecload/*.go pkg/ecload/*.go
GOOS=linux GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
bin/ecload.exe: cmd/ecload/*.go pkg/ecload/*.go
GOOS=windows GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go
bin/ecload-mac: cmd/ecload/*.go pkg/ecload/*.go
GOOS=darwin GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go