Skip to content

Commit

Permalink
Extend Makefile to cross compile to linux from windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
IzakMarais committed Oct 18, 2019
1 parent 447ba59 commit 124b9a3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ ifeq ($(OS),Windows_NT)
endif
SRC:=$(GOPATH)/src/github.com/IzakMarais/reporter

.PHONY: buildall
buildall: build buildlinux

.PHONY: build
build:
go install -v github.com/IzakMarais/reporter/cmd/grafana-reporter

.PHONY: buildlinux
buildlinux:
cmd //v //c "set GOOS=linux&&go install -v github.com/IzakMarais/reporter/cmd/grafana-reporter"

.PHONY: clean
clean:
rm $(TARGET)
clean:
rm -rf $(GOPATH)/bin

.PHONY: docker-build
docker-build:
Expand Down

0 comments on commit 124b9a3

Please sign in to comment.