mirror of
https://github.com/golang/go
synced 2024-11-22 09:54:40 -07:00
857d4cf1a9
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev https://golang.org/cl/171044
17 lines
272 B
Makefile
17 lines
272 B
Makefile
# GNU Make syntax:
|
|
nullstring :=
|
|
space := $(nullstring) # a space at the end
|
|
QUOTED_GOROOT=$(subst $(space),\ ,$(GOROOT))
|
|
|
|
all: build run
|
|
|
|
build:
|
|
bash $(QUOTED_GOROOT)/src/make.bash
|
|
|
|
run:
|
|
bash $(QUOTED_GOROOT)/src/run.bash
|
|
|
|
clean:
|
|
bash $(QUOTED_GOROOT)/src/clean.bash
|
|
|