mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 05:23:33 +02:00
add cross-compile setup task
This commit is contained in:
@@ -20,13 +20,20 @@ build:
|
|||||||
cd src/github.com/Netflix-Skunkworks/go-jira/jira; \
|
cd src/github.com/Netflix-Skunkworks/go-jira/jira; \
|
||||||
go get -v
|
go get -v
|
||||||
|
|
||||||
|
|
||||||
|
cross-setup:
|
||||||
|
for p in $(PLATFORMS); do \
|
||||||
|
echo "Building for $$p"; \
|
||||||
|
cd $(GOROOT)/src && sudo GOOS=$${p/-*/} GOARCH=$${p/*-/} bash ./make.bash --no-clean; \
|
||||||
|
done
|
||||||
|
|
||||||
all:
|
all:
|
||||||
mkdir -p $(DIST); \
|
mkdir -p $(DIST); \
|
||||||
cd src/github.com/Netflix-Skunkworks/go-jira/jira; \
|
cd src/github.com/Netflix-Skunkworks/go-jira/jira; \
|
||||||
go get -d; \
|
go get -d; \
|
||||||
for p in $(PLATFORMS); do \
|
for p in $(PLATFORMS); do \
|
||||||
echo "Building for $$p"; \
|
echo "Building for $$p"; \
|
||||||
GOOS=$${p/-*/} GOARCH=$${p/*-/} go build -v -ldflags -s -o $(DIST)/jira-$$p; \
|
cd $(GOPATH)/src/github.com/Netflix-Skunkworks/go-jira/jira GOOS=$${p/-*/} GOARCH=$${p/*-/} go build -v -ldflags -s -o $(DIST)/jira-$$p; \
|
||||||
done
|
done
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
|
|||||||
Reference in New Issue
Block a user