Rewrite targets like "all-local" to "all_local"
authorTom Tromey <tromey@redhat.com>
Thu, 23 Nov 1995 01:21:40 +0000 (01:21 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 23 Nov 1995 01:21:40 +0000 (01:21 +0000)
hack-make.sed

index 81d0722..4de5ebb 100644 (file)
@@ -9,9 +9,9 @@
 #   later, in the generated Makefile.
 s/(/{/g
 s/)/}/g
-/^ *\([a-zA-Z_.][a-zA-Z0-9_.]*\):.*/{
+/^ *\([a-zA-Z_.][-a-zA-Z0-9_.]*\):.*/{
 s//target_\1=explicit/
-s/\./_/g
+s/[.-]/_/g
 p
 }
 s/^ *\([A-Z][A-Z0-9_]*\)[       ]*=[    ]*\(.*\)/\1='\2'/p