From c1681b632c32690a078cea43dc9213254b27430d Mon Sep 17 00:00:00 2001 From: Cory Bennett Date: Wed, 18 Feb 2015 15:01:47 -0800 Subject: [PATCH] adding simple Makefile to make cross compiling a bit easier --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c862967 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +PLATFORMS= \ + freebsd-386 \ + freebsd-amd64 \ + freebsd-arm \ + linux-386 \ + linux-amd64 \ + linux-arm \ + openbsd-386 \ + openbsd-amd64 \ + windows-386 \ + windows-amd64 \ + darwin-386 \ + darwin-amd64 \ + $(NULL) + +DIST=$(shell pwd)/dist +export GOPATH=$(shell pwd) + +build: + cd src/github.com/Netflix-Skunkworks/go-jira/jira; \ + go install -v + +all: + mkdir -p $(DIST); \ + cd src/github.com/Netflix-Skunkworks/go-jira/jira; \ + go get -d; \ + for p in $(PLATFORMS); do \ + echo "Building for $$p"; \ + GOOS=$${p/-*/} GOARCH=$${p/*-/} go build -v -o $(DIST)/jira-$$p; \ + done