Commit bf53e16f authored by Robert Griesemer's avatar Robert Griesemer

- install doc in lib/go

- adjust dependent files

R=rsc
DELTA=1132  (567 added, 562 deleted, 3 changed)
OCL=27862
CL=27862
parent 9b6009b6
......@@ -47,11 +47,13 @@ O2=\
ast.$O\
O3=\
doc.$O\
parser.$O\
phases: a1 a2 a3
_obj$D/ast.a: phases
_obj$D/doc.a: phases
_obj$D/parser.a: phases
_obj$D/scanner.a: phases
_obj$D/token.a: phases
......@@ -66,6 +68,7 @@ a2: $(O2)
rm -f $(O2)
a3: $(O3)
$(AR) grc _obj$D/doc.a doc.$O
$(AR) grc _obj$D/parser.a parser.$O
rm -f $(O3)
......@@ -73,6 +76,7 @@ a3: $(O3)
newpkg: clean
mkdir -p _obj$D
$(AR) grc _obj$D/ast.a
$(AR) grc _obj$D/doc.a
$(AR) grc _obj$D/parser.a
$(AR) grc _obj$D/scanner.a
$(AR) grc _obj$D/token.a
......@@ -83,13 +87,14 @@ $(O3): a2
$(O4): a3
nuke: clean
rm -f $(GOROOT)/pkg$D/ast.a $(GOROOT)/pkg$D/parser.a $(GOROOT)/pkg$D/scanner.a $(GOROOT)/pkg$D/token.a
rm -f $(GOROOT)/pkg$D/ast.a $(GOROOT)/pkg$D/doc.a $(GOROOT)/pkg$D/parser.a $(GOROOT)/pkg$D/scanner.a $(GOROOT)/pkg$D/token.a
packages: _obj$D/ast.a _obj$D/parser.a _obj$D/scanner.a _obj$D/token.a
packages: _obj$D/ast.a _obj$D/doc.a _obj$D/parser.a _obj$D/scanner.a _obj$D/token.a
install: packages
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
cp _obj$D/ast.a $(GOROOT)/pkg$D/ast.a
cp _obj$D/doc.a $(GOROOT)/pkg$D/doc.a
cp _obj$D/parser.a $(GOROOT)/pkg$D/parser.a
cp _obj$D/scanner.a $(GOROOT)/pkg$D/scanner.a
cp _obj$D/token.a $(GOROOT)/pkg$D/token.a
......@@ -30,7 +30,7 @@ install: pretty godoc untab
clean:
rm -f pretty untab godoc *.6 *.a 6.out *~
godoc.6: astprinter.6 comment.6 doc.6
godoc.6: astprinter.6 comment.6
pretty.6: astprinter.6 format.6
......
......@@ -32,6 +32,7 @@ import (
"flag";
"fmt";
"go/ast";
"go/doc";
"go/parser";
"go/token";
"http";
......@@ -48,7 +49,6 @@ import (
"astprinter";
"comment";
"doc";
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment