Skip to content

Commit

Permalink
Merge pull request cockroachdb#12234 from jordanlewis/make-start
Browse files Browse the repository at this point in the history
build: add a start command to Makefile
  • Loading branch information
jordanlewis authored Dec 10, 2016
2 parents df70a9d + 9e0f200 commit e71bf9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ GOFLAGS :=
# Set to 1 to use static linking for all builds (including tests).
STATIC :=

COCKROACH := ./cockroach

# Variables to be overridden on the command line, e.g.
# make test PKG=./pkg/storage TESTFLAGS=--vmodule=raft=1
PKG := ./pkg/...
Expand All @@ -35,6 +37,7 @@ BENCHTIMEOUT := 5m
TESTFLAGS :=
STRESSFLAGS :=
DUPLFLAGS := -t 100
STARTFLAGS := -s type=mem,size=1GiB --alsologtostderr
BUILDMODE := install
SUFFIX :=
export GOPATH := $(realpath ../../../..)
Expand Down Expand Up @@ -74,6 +77,12 @@ all: build test check
build: BUILDMODE = build -i -o cockroach$(SUFFIX)
build: install

.PHONY: start
start: build
start:
$(COCKROACH) start $(STARTFLAGS)


.PHONY: install
install: LDFLAGS += $(shell GOPATH=${GOPATH} build/ldflags.sh)
install:
Expand Down

0 comments on commit e71bf9d

Please sign in to comment.