2016-04-10 14:32:26 -07:00
|
|
|
# Copyright 2010 The Go Authors. All rights reserved.
|
2010-02-09 13:33:00 -08:00
|
|
|
# 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 19:49:11 -08:00
|
|
|
tree2\
|
2010-02-09 13:33:00 -08:00
|
|
|
|
2012-03-07 13:51:49 +11:00
|
|
|
all: $(ALL)
|
2010-02-09 13:33:00 -08:00
|
|
|
|
2012-03-07 13:51:49 +11:00
|
|
|
%: %.go
|
|
|
|
|
go build $*.go stats.go
|
2010-02-09 13:33:00 -08:00
|
|
|
|
2012-03-07 13:51:49 +11:00
|
|
|
%.bench: %
|
|
|
|
|
time ./$*
|
2010-02-09 13:33:00 -08:00
|
|
|
|
|
|
|
|
bench: $(addsuffix .bench, $(ALL))
|
|
|
|
|
|
|
|
|
|
clean:
|
2012-03-07 13:51:49 +11:00
|
|
|
rm -f $(ALL)
|
2010-02-09 13:33:00 -08:00
|
|
|
|