Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2906)

Delta Between Two Patch Sets: src/Make.inc

Issue 4172055: code review 4172055: goinstall: handle $(GOOS) and $(GOARCH) in filenames (Closed)
Left Patch Set: diff -r 03da6860bb39 https://go.googlecode.com/hg/ Created 14 years ago
Right Patch Set: diff -r 66ad99aa592e https://go.googlecode.com/hg/ Created 14 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « .hgignore ('k') | src/cmd/goinstall/Makefile » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Copyright 2009 The Go Authors. All rights reserved. 1 # Copyright 2009 The Go Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style 2 # Use of this source code is governed by a BSD-style
3 # license that can be found in the LICENSE file. 3 # license that can be found in the LICENSE file.
4 4
5 # Makefile included by all other Go makefiles. 5 # Makefile included by all other Go makefiles.
6 6
7 # Clear variables that must come from Makefiles, 7 # Clear variables that must come from Makefiles,
8 # not the environment. 8 # not the environment.
9 LIB:= 9 LIB:=
10 TARG:= 10 TARG:=
(...skipping 11 matching lines...) Expand all
22 GOROOT_FINAL?=$(GOROOT) 22 GOROOT_FINAL?=$(GOROOT)
23 23
24 ifeq ($(GOHOSTOS),) 24 ifeq ($(GOHOSTOS),)
25 GOHOSTOS:=$(shell uname | tr A-Z a-z | sed 's/mingw/windows/; s/.*windows.*/wind ows/') 25 GOHOSTOS:=$(shell uname | tr A-Z a-z | sed 's/mingw/windows/; s/.*windows.*/wind ows/')
26 endif 26 endif
27 27
28 ifeq ($(GOOS),) 28 ifeq ($(GOOS),)
29 GOOS:=$(GOHOSTOS) 29 GOOS:=$(GOHOSTOS)
30 endif 30 endif
31 31
32 GOOS_LIST:=\ 32 GOOS_LIST=\
33 darwin\ 33 darwin\
34 freebsd\ 34 freebsd\
35 linux\ 35 linux\
36 plan9\ 36 plan9\
37 tiny\
38 windows\ 37 windows\
39 38
40 GOARCH_LIST:=\ 39 GOARCH_LIST=\
41 386\ 40 386\
42 amd64\ 41 amd64\
43 arm\ 42 arm\
44 43
45 ifeq ($(filter $(GOOS),$(GOOS_LIST)),) 44 ifeq ($(filter $(GOOS),$(GOOS_LIST)),)
46 $(error Invalid $$GOOS '$(GOOS)'; must be one of: $(GOOS_LIST)) 45 $(error Invalid $$GOOS '$(GOOS)'; must be one of: $(GOOS_LIST))
47 endif 46 endif
48 47
49 ifeq ($(GOHOSTARCH),) 48 ifeq ($(GOHOSTARCH),)
50 ifeq ($(GOHOSTOS),darwin) 49 ifeq ($(GOHOSTOS),darwin)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 @echo export LANG="$(LANG)" 144 @echo export LANG="$(LANG)"
146 @echo export LC_ALL="$(LC_ALL)" 145 @echo export LC_ALL="$(LC_ALL)"
147 @echo export LC_CTYPE="$(LC_CTYPE)" 146 @echo export LC_CTYPE="$(LC_CTYPE)"
148 @echo export GREP_OPTIONS="$(GREP_OPTIONS)" 147 @echo export GREP_OPTIONS="$(GREP_OPTIONS)"
149 @echo export GREP_COLORS="$(GREP_COLORS)" 148 @echo export GREP_COLORS="$(GREP_COLORS)"
150 @echo MAKE_GO_ENV_WORKED=1 149 @echo MAKE_GO_ENV_WORKED=1
151 150
152 # Don't let the targets in this file be used 151 # Don't let the targets in this file be used
153 # as the default make target. 152 # as the default make target.
154 .DEFAULT_GOAL:= 153 .DEFAULT_GOAL:=
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b