2008-09-18 17:58:37 -06:00
|
|
|
# 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.
|
|
|
|
|
2009-07-28 12:23:24 -06:00
|
|
|
include $(GOROOT)/src/Make.conf
|
2009-06-05 11:59:55 -06:00
|
|
|
include $(GOROOT)/src/Make.$(GOARCH)
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-06-15 17:23:16 -06:00
|
|
|
all: godoc gofmt
|
2009-02-06 16:26:30 -07:00
|
|
|
|
2009-06-05 11:59:55 -06:00
|
|
|
godoc: godoc.$O
|
|
|
|
$(LD) -o godoc godoc.$O
|
2009-02-06 16:26:30 -07:00
|
|
|
|
2009-06-15 17:23:16 -06:00
|
|
|
gofmt: gofmt.$O
|
|
|
|
$(LD) -o gofmt gofmt.$O
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-06-15 17:23:16 -06:00
|
|
|
test: gofmt
|
2008-10-24 21:14:28 -06:00
|
|
|
./test.sh
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-06-15 17:23:16 -06:00
|
|
|
smoketest: gofmt
|
|
|
|
./test.sh $(GOROOT)/src/pkg/go/printer/printer.go
|
2008-11-13 18:50:46 -07:00
|
|
|
|
2009-04-02 19:25:18 -06:00
|
|
|
install: pretty godoc untab
|
2009-07-28 12:23:24 -06:00
|
|
|
cp godoc $(GOBIN)/godoc
|
|
|
|
cp gofmt $(GOBIN)/gofmt
|
2008-09-18 17:58:37 -06:00
|
|
|
|
|
|
|
clean:
|
2009-06-15 17:23:16 -06:00
|
|
|
rm -f godoc gofmt *.$O *.a 6.out *~
|
2009-04-15 19:53:43 -06:00
|
|
|
|
2009-06-05 11:59:55 -06:00
|
|
|
%.$O: %.go
|
|
|
|
$(GC) $(F) $<
|