aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/Makefile
diff options
context:
space:
mode:
authorBenny Siegert <bsiegert@gmail.com>2010-11-30 17:17:45 -0800
committerRob Pike <r@golang.org>2010-11-30 17:17:45 -0800
commitb06dc26a58df0a79e6be3004484809ffd2c60d74 (patch)
treead513997489aa9d89cf5442e2eb9b409bafd84ad /src/pkg/path/Makefile
parent555feea117532a5c033478997e1ce9b77b4f8eea (diff)
downloadgo-b06dc26a58df0a79e6be3004484809ffd2c60d74.tar.xz
path: Windows support for Split
Make Split work on backslashes as well as on slashes under Windows and support the "C:filename" special case. Also add corresponding tests. R=r, rsc, PeterGo, r2, brainman CC=golang-dev https://golang.org/cl/3008041
Diffstat (limited to 'src/pkg/path/Makefile')
-rw-r--r--src/pkg/path/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/pkg/path/Makefile b/src/pkg/path/Makefile
index a7e05714a9..a36d86eb57 100644
--- a/src/pkg/path/Makefile
+++ b/src/pkg/path/Makefile
@@ -9,4 +9,21 @@ GOFILES=\
match.go\
path.go\
+GOFILES_freebsd=\
+ path_unix.go
+
+GOFILES_darwin=\
+ path_unix.go
+
+GOFILES_linux=\
+ path_unix.go
+
+GOFILES_nacl=\
+ path_unix.go
+
+GOFILES_windows=\
+ path_windows.go
+
+GOFILES+=$(GOFILES_$(GOOS))
+
include ../../Make.pkg