diff options
| author | Russ Cox <rsc@golang.org> | 2010-02-09 20:29:08 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-02-09 20:29:08 -0800 |
| commit | df8959cc5eb078adbafd8e4b8bf088e9c296d4ec (patch) | |
| tree | 14d672aa7d991a767a53b3969ad4147c3bbc04d8 | |
| parent | 4c6707de3ff6dc376215849135c4af10c52fec61 (diff) | |
| download | golang-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-- | .hgignore | 4 | ||||
| -rw-r--r-- | test/garbage/Makefile | 8 |
2 files changed, 5 insertions, 7 deletions
@@ -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)) |
