Skip to content

Commit

Permalink
Merge pull request #55 from zchee/dev-makefile
Browse files Browse the repository at this point in the history
Fix Makefile for develop
  • Loading branch information
zchee committed Jan 12, 2016
2 parents b38ca24 + 2260da7 commit 64988ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ else
# - `strip -s` is like passing '-s' flag to -ldflags, but it doesn't strip quite as much
endif

# Set static build option
# Usage: STATIC=1 make
ifeq ($(STATIC),true)
GO_LDFLAGS := $(GO_LDFLAGS) -extldflags -static
endif

# Verbose
VERBOSE_GO := -v

Expand All @@ -69,6 +63,10 @@ export GOOS=darwin
# Support go1.5 vendoring (let us avoid messing with GOPATH or using godep)
export GO15VENDOREXPERIMENT=1

# TODO: uuid.go need cgo
export CGO_ENABLED=1


# Package side settings

# Build package infomation
Expand Down Expand Up @@ -157,4 +155,4 @@ test-stop:
test-upgrade:
test-url:

.PHONY: clean run kill
.PHONY: clean run rm kill
4 changes: 2 additions & 2 deletions mk/driver.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ MAKEFLAGS := -j 1

DOCKER_MACHINE_CMD := docker-machine

DOCKER_MACHINE_STORAGEPATH := $(HOME)/.docker/machine-test
DOCKER_MACHINE_STORAGEPATH := $(HOME)/.docker/machine
DOCKER_MACHINE_VM_NAME := xhyve-test
# Set boot2docker-url to already exists iso path
DOCKER_MACHINE_VM_BOOT2DOCKER_URL := $(HOME)/.docker/machine/cache/boot2docker.iso
# Set CPU size to hw.ncpu/2
DOCKER_MACHINE_VM_CPU_COUNT := ${shell /usr/bin/python -c "print(${shell sysctl -n hw.ncpu}/2)"}
# Set memory size to hw.memsize/2 MB
DOCKER_MACHINE_VM_MEMORY_SIZE := ${shell /usr/bin/python -c "print(${shell sysctl -n hw.memsize}/2097152)"}
DOCKER_MACHINE_VM_DISKSIZE := 2000
DOCKER_MACHINE_VM_DISKSIZE := 20000

# Always enable debug mode
export MACHINE_DEBUG=1
Expand Down

0 comments on commit 64988ab

Please sign in to comment.