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