Skip to content

Commit

Permalink
Fix the build script to work with cmd/cuckoo dir
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogg committed Oct 3, 2017
1 parent b765fad commit 86c8752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local: format
@LOCAL_BUILD=1 sh -c "'$(CURDIR)/scripts/build.sh'"

# all builds binaries for all targets
build: tools
build: format
@mkdir -p bin/
@sh -c "'$(CURDIR)/scripts/build.sh'"

Expand Down
7 changes: 5 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ fi

# Build!
echo "==> Building..."
cd "$DIR/cmd/cuckoo"
"`which gox`" \
-os="${XC_OS}" \
-arch="${XC_ARCH}" \
-osarch="!darwin/arm !darwin/arm64" \
-ldflags "${GOLDFLAGS}" \
-output "pkg/{{.OS}}_{{.Arch}}/cuckoo" \
-ldflags="${GOLDFLAGS}" \
-output="../../pkg/{{.OS}}_{{.Arch}}/cuckoo" \
-tags="${GOTAGS}" \
.

cd "$DIR"

# Move all the compiled things to the $GOPATH/bin
GOPATH=${GOPATH:-$(go env GOPATH)}
case $(uname) in
Expand Down

0 comments on commit 86c8752

Please sign in to comment.