mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-19 12:43:30 +02:00
31 lines
574 B
Makefile
31 lines
574 B
Makefile
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
|