Skip to content

Commit

Permalink
Merge pull request #289 from bdarnell/gopath
Browse files Browse the repository at this point in the history
Add "make gopath" build target.
  • Loading branch information
bdarnell committed Jan 26, 2015
2 parents 8af77b1 + 0a8ff08 commit c3ada9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GOFLAGS :=
STATIC := $(STATIC)

RUN := run
GOPATH := $(CURDIR)/_vendor:$(GOPATH)
GOPATH := $(CURDIR)/_vendor:$(CURDIR)/../../../..
# Exposes protoc.
PATH := $(CURDIR)/_vendor/usr/bin:$(PATH)
# Expose protobuf.
Expand Down Expand Up @@ -123,3 +123,9 @@ clean:
make -C $(ROACH_PROTO) clean
make -C $(ROACH_LIB) clean
make -C $(SQL_PARSER) clean

# The gopath target outputs the GOPATH that should be used for building this
# package. It is used by the emacs go-projectile package for automatic
# configuration.
gopath:
@echo -n $(GOPATH)

0 comments on commit c3ada9f

Please sign in to comment.