diff --git a/config.subr b/config.subr
index 9ee7fb1..71af178 100644
--- a/config.subr
+++ b/config.subr
@@ -383,7 +383,7 @@ env_reset() {
objc_o_rule() {
echo "$1" | sed -e 's/^\(.*\)\.m$/\1.o: \1.m/'
- echo "$1: $2" | sed -e 's/^\(.*\)\.m: $/\1.o: /'
+ echo "$1: $2" | sed -e 's/^\(.*\)\.m: /\1.o: /'
}
objc_ext_rule() {