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
|
|
|
|
|
2009-02-06 16:26:30 -07:00
|
|
|
all: untab gds pretty
|
2008-11-18 19:44:17 -07:00
|
|
|
|
|
|
|
untab: untab.6
|
|
|
|
$(L) -o untab untab.6
|
2009-02-06 16:26:30 -07:00
|
|
|
|
|
|
|
gds: gds.6
|
|
|
|
$(L) -o gds gds.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
|
|
|
|
2009-02-06 16:26:30 -07:00
|
|
|
gds.6: utils.6 platform.6 compilation.6 printer.6
|
|
|
|
|
2008-10-26 22:32:30 -06:00
|
|
|
pretty.6: platform.6 printer.6 compilation.6
|
2008-10-24 15:04:54 -06:00
|
|
|
|
2009-03-04 18:37:47 -07:00
|
|
|
compilation.6: platform.6 parser.6 ast.6 typechecker.6
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-03-04 18:13:12 -07:00
|
|
|
typechecker.6: ast.6
|
2008-10-14 19:14:01 -06:00
|
|
|
|
2009-03-04 18:13:12 -07:00
|
|
|
ast.6: symboltable.6
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-02-06 12:10:25 -07:00
|
|
|
symboltable.6:
|
2008-10-26 22:32:30 -06:00
|
|
|
|
2009-03-04 18:37:47 -07:00
|
|
|
parser.6: ast.6 symboltable.6
|
2008-09-18 17:58:37 -06:00
|
|
|
|
2009-02-06 12:10:25 -07:00
|
|
|
platform.6: utils.6
|
2008-12-16 19:02:22 -07:00
|
|
|
|
2009-03-06 17:11:40 -07:00
|
|
|
printer.6: utils.6 ast.6 symboltable.6 template.6
|
2008-12-16 19:02:22 -07:00
|
|
|
|
2008-09-18 17:58:37 -06:00
|
|
|
%.6: %.go
|
|
|
|
$(G) $(F) $<
|