summaryrefslogtreecommitdiff
path: root/doc/codelab/wiki/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/codelab/wiki/Makefile')
-rw-r--r--doc/codelab/wiki/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/doc/codelab/wiki/Makefile b/doc/codelab/wiki/Makefile
index 76ab5c5bc..e0549fc8e 100644
--- a/doc/codelab/wiki/Makefile
+++ b/doc/codelab/wiki/Makefile
@@ -2,16 +2,11 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../../src/Make.$(GOARCH)
+include ../../../src/Make.inc
all: index.html
-# ugly hack to deal with whitespaces in $GOROOT
-nullstring :=
-space := $(nullstring) # a space at the end
-QUOTED_GOROOT:=$(subst $(space),\ ,$(GOROOT))
-
-include $(QUOTED_GOROOT)/src/Make.common
+include ../../../src/Make.common
CLEANFILES+=index.html srcextract.bin htmlify.bin
@@ -23,7 +18,7 @@ test: final.bin
rm -f final.6 final.bin
%.bin: %.$O
- $(QUOTED_GOBIN)/$(LD) -o $@ $<
-%.$O:
- $(QUOTED_GOBIN)/$(GC) $*.go
+ $(LD) -o $@ $<
+%.$O:
+ $(GC) $*.go