summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-02-09 20:29:08 -0800
committerRuss Cox <rsc@golang.org>2010-02-09 20:29:08 -0800
commitdf8959cc5eb078adbafd8e4b8bf088e9c296d4ec (patch)
tree14d672aa7d991a767a53b3969ad4147c3bbc04d8
parent4c6707de3ff6dc376215849135c4af10c52fec61 (diff)
downloadgolang-df8959cc5eb078adbafd8e4b8bf088e9c296d4ec.tar.gz
fix garbage benchmark Makefile.
apparently some versions of GNU make cannot handle the %: %.$O rule. i don't understand why and don't care enough to find out. R=agl1 CC=golang-dev http://codereview.appspot.com/206055
-rw-r--r--.hgignore4
-rw-r--r--test/garbage/Makefile8
2 files changed, 5 insertions, 7 deletions
diff --git a/.hgignore b/.hgignore
index 9b858c97b..323c81e81 100644
--- a/.hgignore
+++ b/.hgignore
@@ -32,9 +32,7 @@ src/pkg/runtime/runtime.acid.*
test/pass.out
test/run.out
test/times.out
-test/garbage/parser
-test/garbage/peano
-test/garbage/tree
+test/garbage/*.out
syntax:regexp
^pkg/
diff --git a/test/garbage/Makefile b/test/garbage/Makefile
index 0574a6f49..0a3ae8e55 100644
--- a/test/garbage/Makefile
+++ b/test/garbage/Makefile
@@ -9,16 +9,16 @@ ALL=\
peano\
tree\
-all: $(ALL)
+all: $(addsuffix .out, $(ALL))
%.$O: %.go
$(GC) $*.go
-%: %.$O
+%.out: %.$O
$(LD) -o $@ $*.$O
-%.bench: %
- ./$*
+%.bench: %.out
+ ./$*.out
bench: $(addsuffix .bench, $(ALL))