Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Commit

Permalink
Makefile: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanfoo committed Jul 2, 2016
1 parent 63ed8d2 commit 6d0288e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,20 @@ test-coverage:

packages:
for os in $(PKG_OS); do \
cd $(BUILD_PATH); \
mkdir -p $(ARTIFACTS_PATH)/$(PROJECT)_$${os}_$${arch}; \
for cmd in $(COMMANDS); do \
if [ -d "$${cmd}" ]; then \
cd $${cmd}; \
fi; \
GOOS=$${os} GOARCH=$${arch} $(GOCMD) build -ldflags \
"-X main.version=$(BRANCH) -X main.build=$(BUILD) -X main.commit=$(COMMIT)" \
-o "$(ARTIFACTS_PATH)/$(PROJECT)_$${os}_$${arch}/`basename $${PWD}`" .; \
for arch in $(PKG_ARCH); do \
cd $(BUILD_PATH); \
mkdir -p $(ARTIFACTS_PATH)/$(PROJECT)_$${os}_$${arch}; \
for cmd in $(COMMANDS); do \
if [ -d "$${cmd}" ]; then \
cd $${cmd}; \
fi; \
GOOS=$${os} GOARCH=$${arch} $(GOCMD) build -ldflags \
"-X main.version=$(BRANCH) -X main.build=$(BUILD) -X main.commit=$(COMMIT)" \
-o "$(ARTIFACTS_PATH)/$(PROJECT)_$${os}_$${arch}/`basename $${PWD}`" .; \
cd $(BUILD_PATH); \
done; \
cd $(ARTIFACTS_PATH); \
tar -cvzf $(PROJECT)_$(BRANCH)_$${os}_$${arch}.tgz $(PROJECT)_$${os}_$${arch}/; \
done; \
cd $(ARTIFACTS_PATH); \
tar cvzf $(PROJECT)_$(BRANCH)_$${os}_$${arch}.tgz $(PROJECT)_$${os}_$${arch}/; \
done; \

0 comments on commit 6d0288e

Please sign in to comment.