ecload/Makefile

26 lines
985 B
Makefile
Raw Normal View History

2019-05-27 15:22:28 +00:00
.PHONY: all
2019-05-28 14:35:01 +00:00
all: bin/ecload bin/ecload.exe bin/ecload-mac bin/ecload-tui bin/ecload-tui.exe bin/ecload-tui-mac
2019-05-27 15:22:28 +00:00
.PHONY: clean
clean:
rm -r bin/
2019-05-28 14:35:01 +00:00
go clean ./cmd/ecload/ ./cmd/ecload-tui/ ./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
2019-05-28 14:35:01 +00:00
bin/ecload-tui: cmd/ecload-tui/*.go pkg/ecload/*.go
GOOS=linux GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload-tui/main.go
bin/ecload-tui.exe: cmd/ecload-tui/*.go pkg/ecload/*.go
GOOS=windows GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload-tui/main.go
bin/ecload-tui-mac: cmd/ecload-tui/*.go pkg/ecload/*.go
GOOS=darwin GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload-tui/main.go