Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
65112628
Commit
65112628
authored
Nov 30, 2009
by
Fumitoshi Ukai
Committed by
Russ Cox
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix example Makefile to avoid $GOROOT in case it has spaces.
R=rsc, sergio
https://golang.org/cl/162058
parent
be98bc48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
contribute.html
doc/contribute.html
+5
-2
No files found.
doc/contribute.html
View file @
65112628
...
...
@@ -64,7 +64,7 @@ The basic form is illustrated by <a href="../src/pkg/container/vector/Makefile">
</p>
<pre>
include
$(GOROOT)/src
/Make.$(GOARCH)
include
../../..
/Make.$(GOARCH)
TARG=container/vector
GOFILES=\
...
...
@@ -72,12 +72,15 @@ GOFILES=\
stringvector.go\
vector.go\
include
$(GOROOT)/src
/Make.pkg
include
../../..
/Make.pkg
</pre>
<p>
The first and last lines
<code>
include
</code>
standard definitions and rules,
<code>
$(GOROOT)/src/Make.$(GOARCH)
</code>
and
<code>
$(GOROOT)/src/Make.pkg
</code>
,
so that the body of the
<code>
Makefile
</code>
need only specify two variables.
For packages to be installed in the Go tree, use a relative path instead of
<code>
$(GOROOT)/src
</code>
, so that make will work correctly even if
<code>
$(GOROOT)
</code>
contains spaces.
</p>
<p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment