]> Cypherpunks repositories - gostls13.git/commitdiff
fix garbage benchmark Makefile.
authorRuss Cox <rsc@golang.org>
Wed, 10 Feb 2010 04:29:08 +0000 (20:29 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 10 Feb 2010 04:29:08 +0000 (20:29 -0800)
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
https://golang.org/cl/206055

.hgignore
test/garbage/Makefile

index 9b858c97bc862fe53a55e3aa9c02a7d28e4649fb..323c81e81deb5be95ed68ca40dd57df3043cf300 100644 (file)
--- 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/
index 0574a6f4932f71e856bafe591ff75cf774edf81f..0a3ae8e5508395c61747b4141db91cbd36fc2abb 100644 (file)
@@ -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))