1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00

move template into its own directory so it can have more files

R=rsc
DELTA=1421  (736 added, 685 deleted, 0 changed)
OCL=27249
CL=27249
This commit is contained in:
Rob Pike 2009-04-08 23:43:02 -07:00
parent 7d6c0018fb
commit 4482801477
5 changed files with 60 additions and 5 deletions

View File

@ -22,6 +22,7 @@ DIRS=\
strconv\ strconv\
sync\ sync\
tabwriter\ tabwriter\
template\
time\ time\
unicode\ unicode\
@ -36,7 +37,6 @@ FILES=\
rand\ rand\
sort\ sort\
strings\ strings\
template\
testing\ testing\
utf8\ utf8\
@ -49,7 +49,6 @@ TEST=\
once\ once\
sort\ sort\
strings\ strings\
template\
utf8\ utf8\
clean.dirs: $(addsuffix .dirclean, $(DIRS)) clean.dirs: $(addsuffix .dirclean, $(DIRS))
@ -103,7 +102,6 @@ log.6: fmt.dirinstall io.dirinstall os.dirinstall time.dirinstall
path.6: io.dirinstall path.6: io.dirinstall
once.6: sync.dirinstall once.6: sync.dirinstall
strings.6: utf8.install strings.6: utf8.install
template.6: bufio.install fmt.dirinstall io.dirinstall os.dirinstall reflect.dirinstall strings.install
testing.6: flag.install fmt.dirinstall testing.6: flag.install fmt.dirinstall
fmt.dirinstall: io.dirinstall reflect.dirinstall strconv.dirinstall fmt.dirinstall: io.dirinstall reflect.dirinstall strconv.dirinstall
@ -119,8 +117,9 @@ os.dirinstall: syscall.dirinstall once.install
regexp.dirinstall: os.dirinstall regexp.dirinstall: os.dirinstall
reflect.dirinstall: strconv.dirinstall sync.dirinstall reflect.dirinstall: strconv.dirinstall sync.dirinstall
strconv.dirinstall: math.dirinstall os.dirinstall utf8.install strconv.dirinstall: math.dirinstall os.dirinstall utf8.install
tabwriter.dirinstall: os.dirinstall io.dirinstall container.dirinstall
time.dirinstall: once.install os.dirinstall io.dirinstall
sync.dirinstall: sync.dirinstall:
syscall.dirinstall: sync.dirinstall syscall.dirinstall: sync.dirinstall
tabwriter.dirinstall: os.dirinstall io.dirinstall container.dirinstall
template.dirinstall: bufio.install fmt.dirinstall io.dirinstall os.dirinstall reflect.dirinstall strings.install
time.dirinstall: once.install os.dirinstall io.dirinstall

55
src/lib/template/Makefile Normal file
View File

@ -0,0 +1,55 @@
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# DO NOT EDIT. Automatically generated by gobuild.
# gobuild -m >Makefile
O=6
GC=$(O)g
CC=$(O)c -w
AS=$(O)a
AR=$(O)ar
default: packages
clean:
rm -f *.$O *.a $O.out
test: packages
gotest
coverage: packages
gotest
6cov -g `pwd` | grep -v '_test\.go:'
%.$O: %.go
$(GC) $*.go
%.$O: %.c
$(CC) $*.c
%.$O: %.s
$(AS) $*.s
O1=\
template.$O\
template.a: a1
a1: $(O1)
$(AR) grc template.a template.$O
rm -f $(O1)
newpkg: clean
$(AR) grc template.a
$(O1): newpkg
nuke: clean
rm -f $(GOROOT)/pkg/template.a
packages: template.a
install: packages
cp template.a $(GOROOT)/pkg/template.a

View File

@ -37,6 +37,7 @@ maketest \
lib/regexp\ lib/regexp\
lib/strconv\ lib/strconv\
lib/tabwriter\ lib/tabwriter\
lib/template\
lib/time\ lib/time\
lib/unicode\ lib/unicode\