* Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
authorMichael Matz <matz@suse.de>
Fri, 24 Aug 2007 16:30:45 +0000 (16:30 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Fri, 24 Aug 2007 16:30:45 +0000 (16:30 +0000)
From-SVN: r127775

gcc/ChangeLog
gcc/Makefile.in

index 02646a7..8294c7f 100644 (file)
@@ -1,3 +1,7 @@
+2007-08-24  Michael Matz  <matz@suse.de>
+
+       * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
+
 2007-08-24  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/33166
index 26d9a0d..9e78d35 100644 (file)
@@ -3094,7 +3094,7 @@ GTFILES = $(srcdir)/input.h $(srcdir)/coretypes.h \
   $(srcdir)/targhooks.c $(out_file) $(srcdir)/passes.c $(srcdir)/cgraphunit.c \
   @all_gtfiles@
 
-GTFILES_H = $(subst /,-, $(subst $(srcdir)/,gt-, $(subst .c,.h, \
+GTFILES_H = $(subst /,-, $(patsubst $(srcdir)/%,gt-%, $(patsubst %.c,%.h, \
                  $(filter %.c, $(GTFILES)))))
 
 GTFILES_LANG_H = $(patsubst [%], gtype-%.h, $(filter [%], $(GTFILES)))