mirror of
https://github.com/golang/go
synced 2024-11-20 07:44:41 -07:00
a893db8767
- replacement for pretty; app to format a single .go file printer.go (pkg/go/printer): - replacement for astprinter.go; implements AST printing - also replaces pkg/go/ast/format.go for now cleanups: - removed/saved away old code R=r,rsc,iant DELTA=2833 (1183 added, 1628 deleted, 22 changed) OCL=30226 CL=30306
30 lines
547 B
Makefile
30 lines
547 B
Makefile
# 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) $<
|