summaryrefslogtreecommitdiff
path: root/src/lib/fmt/Makefile
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-04-16 20:52:37 -0700
committerRuss Cox <rsc@golang.org>2009-04-16 20:52:37 -0700
commit1f6463f823edd3b194a85d13e5eed068f4a129ed (patch)
treefc0d1bfb34a87c27e16c2bc4978b7cf4dd7b134e /src/lib/fmt/Makefile
parent0f153ec6b47382f4df8f3b62acdee89208d97584 (diff)
downloadgo-git-1f6463f823edd3b194a85d13e5eed068f4a129ed.tar.gz
Convert go tree to hierarchical pkg directory:
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
Diffstat (limited to 'src/lib/fmt/Makefile')
-rw-r--r--src/lib/fmt/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/lib/fmt/Makefile b/src/lib/fmt/Makefile
index f18f4cfe01..cb7aa5db71 100644
--- a/src/lib/fmt/Makefile
+++ b/src/lib/fmt/Makefile
@@ -5,13 +5,15 @@
# DO NOT EDIT. Automatically generated by gobuild.
# gobuild -m >Makefile
+D=
+
O_arm=5
O_amd64=6
O_386=8
OS=568vq
O=$(O_$(GOARCH))
-GC=$(O)g
+GC=$(O)g -I_obj
CC=$(O)c -FVw
AS=$(O)a
AR=6ar
@@ -19,7 +21,7 @@ AR=6ar
default: packages
clean:
- rm -f *.[$(OS)] *.a [$(OS)].out
+ rm -rf *.[$(OS)] *.a [$(OS)].out _obj
test: packages
gotest
@@ -45,28 +47,30 @@ O2=\
phases: a1 a2
-fmt.a: phases
+_obj$D/fmt.a: phases
a1: $(O1)
- $(AR) grc fmt.a format.$O
+ $(AR) grc _obj$D/fmt.a format.$O
rm -f $(O1)
a2: $(O2)
- $(AR) grc fmt.a print.$O
+ $(AR) grc _obj$D/fmt.a print.$O
rm -f $(O2)
newpkg: clean
- $(AR) grc fmt.a
+ mkdir -p _obj$D
+ $(AR) grc _obj$D/fmt.a
$(O1): newpkg
$(O2): a1
$(O3): a2
nuke: clean
- rm -f $(GOROOT)/pkg/fmt.a
+ rm -f $(GOROOT)/pkg$D/fmt.a
-packages: fmt.a
+packages: _obj$D/fmt.a
install: packages
- cp fmt.a $(GOROOT)/pkg/fmt.a
+ test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
+ cp _obj$D/fmt.a $(GOROOT)/pkg$D/fmt.a