2010-02-09 14:33:00 -07:00
|
|
|
# Copyright 2010 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.
|
|
|
|
|
|
|
|
ALL=\
|
|
|
|
parser\
|
|
|
|
peano\
|
|
|
|
tree\
|
2012-01-10 20:49:11 -07:00
|
|
|
tree2\
|
2010-02-09 14:33:00 -07:00
|
|
|
|
2012-03-06 19:51:49 -07:00
|
|
|
all: $(ALL)
|
2010-02-09 14:33:00 -07:00
|
|
|
|
2012-03-06 19:51:49 -07:00
|
|
|
%: %.go
|
|
|
|
go build $*.go stats.go
|
2010-02-09 14:33:00 -07:00
|
|
|
|
2012-03-06 19:51:49 -07:00
|
|
|
%.bench: %
|
|
|
|
time ./$*
|
2010-02-09 14:33:00 -07:00
|
|
|
|
|
|
|
bench: $(addsuffix .bench, $(ALL))
|
|
|
|
|
|
|
|
clean:
|
2012-03-06 19:51:49 -07:00
|
|
|
rm -f $(ALL)
|
2010-02-09 14:33:00 -07:00
|
|
|
|