blob: 3171a087a50242ba89d5c4ba28f6d0099468c75a [file] [log] [blame]
# 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.
include $(GOROOT)/src/Make.$(GOARCH)
all: godoc gofmt
godoc: godoc.$O
$(LD) -o godoc godoc.$O
gofmt: gofmt.$O
$(LD) -o gofmt gofmt.$O
test: gofmt
./test.sh
smoketest: gofmt
./test.sh $(GOROOT)/src/pkg/go/printer/printer.go
install: pretty godoc untab
cp godoc $(HOME)/bin/godoc
cp gofmt $(HOME)/bin/gofmt
clean:
rm -f godoc gofmt *.$O *.a 6.out *~
%.$O: %.go
$(GC) $(F) $<