Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
32594bd4
Commit
32594bd4
authored
Jan 05, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rollback of
https://golang.org/cl/181077
(broke build) TBR=dho
https://golang.org/cl/181139
parent
1c819cb1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
src/Make.conf
src/Make.conf
+6
-2
src/Make.pkg
src/Make.pkg
+8
-2
src/pkg/Makefile
src/pkg/Makefile
+4
-12
No files found.
src/Make.conf
View file @
32594bd4
...
...
@@ -6,13 +6,17 @@ CFLAGS=-ggdb -I"$(GOROOT)"/include -O2 -fno-inline
O
=
o
YFLAGS
=-
d
# GNU Make syntax:
ifndef
GOBIN
nullstring
:=
space
:= $(
nullstring
)
# a space at the end
ifndef
GOBIN
QUOTED_HOME
=$(
subst
$(
space
),\ ,$(
HOME
))
GOBIN
=$(
QUOTED_HOME
)/
bin
endif
QUOTED_GOBIN
=$(
subst
$(
space
),\ ,$(
GOBIN
))
else
nullstring
:=
space
:= $(
nullstring
)
# a space at the end
QUOTED_GOBIN
=$(
subst
$(
space
),\ ,$(
GOBIN
))
endif
CC
=$(
QUOTED_GOBIN
)/
quietgcc
LD
=$(
QUOTED_GOBIN
)/
quietgcc
...
...
src/Make.pkg
View file @
32594bd4
...
...
@@ -6,13 +6,17 @@ all: package
package: _obj/$(TARG).a
testpackage: _test/$(TARG).a
ifndef GOBIN
nullstring :=
space := $(nullstring) # a space at the end
ifndef GOBIN
QUOTED_HOME=$(subst $(space),\ ,$(HOME))
GOBIN=$(QUOTED_HOME)/bin
endif
QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
else
nullstring :=
space := $(nullstring) # a space at the end
QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
endif
# GNU Make 3.80 has a bug in lastword
# elem=$(lastword $(subst /, ,$(TARG)))
...
...
@@ -26,6 +30,8 @@ dir=$(patsubst %/$(elem),%,$(TARG))
endif
# ugly hack to deal with whitespaces in $GOROOT
nullstring :=
space := $(nullstring) # a space at the end
QUOTED_GOROOT=$(subst $(space),\ ,$(GOROOT))
pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
...
...
src/pkg/Makefile
View file @
32594bd4
...
...
@@ -9,14 +9,6 @@
#
# to rebuild the dependency information in Make.deps.
nullstring
:=
space
:=
$(nullstring)
ifndef
GOBIN
QUOTED_HOME
=
$(
subst
$(space)
,
\
,
$(HOME)
)
GOBIN
=
$(QUOTED_HOME)
/bin
endif
QUOTED_GOBIN
=
$(
subst
$(space)
,
\
,
$(GOBIN)
)
all
:
install
DIRS
=
\
...
...
@@ -143,16 +135,16 @@ nuke.dirs: $(addsuffix .nuke, $(DIRS))
test.dirs
:
$(addsuffix .test
,
$(TEST))
%.clean
:
+cd
$*
&&
$(QUOTED_GOBIN)
/
gomake clean
+cd
$*
&&
gomake clean
%.install
:
+cd
$*
&&
$(QUOTED_GOBIN)
/
gomake
install
+cd
$*
&&
gomake
install
%.nuke
:
+cd
$*
&&
$(QUOTED_GOBIN)
/
gomake nuke
+cd
$*
&&
gomake nuke
%.test
:
+cd
$*
&&
$(QUOTED_GOBIN)
/
gomake
test
+cd
$*
&&
gomake
test
clean
:
clean.dirs
...
...
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