1
0
mirror of https://github.com/golang/go synced 2024-10-04 07:21:22 -06:00
go/src/Makefile
Devon H. O'Dell 857d4cf1a9 Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/src
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
2009-12-11 15:14:09 -08:00

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