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.
|
|
|
|
|
|
|
|
G=6g
|
|
|
|
L=6l
|
|
|
|
|
2008-11-18 19:44:17 -07:00
|
|
|
all: untab pretty
|
|
|
|
|
|
|
|
untab: untab.6
|
|
|
|
$(L) -o untab untab.6
|
|
|
|
|
2008-09-18 17:58:37 -06:00
|
|
|
pretty: pretty.6
|
|
|
|
$(L) -o pretty pretty.6
|
|
|
|
|
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
|
|
|
|
./test.sh parser.go
|
|
|
|
|
2008-09-18 17:58:37 -06:00
|
|
|
install: pretty
|
|
|
|
cp pretty $(HOME)/bin/pretty
|
|
|
|
|
|
|
|
clean:
|
2008-12-16 19:02:22 -07:00
|
|
|
rm -f pretty *.6 *.a *~
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2008-10-26 22:32:30 -06:00
|
|
|
pretty.6: platform.6 printer.6 compilation.6
|
2008-10-24 15:04:54 -06:00
|
|
|
|
2008-12-16 19:02:22 -07:00
|
|
|
compilation.6: platform.6 scanner.6 parser.6 ast.6 typechecker.6
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-01-09 17:28:09 -07:00
|
|
|
ast.6: scanner.6
|
2008-10-14 19:14:01 -06:00
|
|
|
|
2008-10-26 22:32:30 -06:00
|
|
|
scanner.6: utils.6
|
2008-10-14 19:14:01 -06:00
|
|
|
|
2009-01-09 17:28:09 -07:00
|
|
|
parser.6: scanner.6 ast.6
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2008-10-26 22:32:30 -06:00
|
|
|
platform.6: utils.6
|
|
|
|
|
2009-01-09 17:28:09 -07:00
|
|
|
printer.6: scanner.6 ast.6 utils.6
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-01-09 17:28:09 -07:00
|
|
|
typechecker.6: ast.6 universe.6
|
2008-12-16 19:02:22 -07:00
|
|
|
|
2009-01-09 17:28:09 -07:00
|
|
|
universe.6: ast.6
|
2008-12-16 19:02:22 -07:00
|
|
|
|
2008-09-18 17:58:37 -06:00
|
|
|
%.6: %.go
|
|
|
|
$(G) $(F) $<
|