From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Merrill To: wilson@cygnus.com, egcs@cygnus.com Cc: jason@cygnus.com Subject: Makefile.in patch Date: Tue, 05 May 1998 16:32:00 -0000 Message-id: <199805051901.MAA13316@yorick.cygnus.com> X-SW-Source: 1998-05/msg00149.html The current .SUFFIXES rule gets it backwards. .SUFFIXES is the set of suffixes you *do* want to consider for implicit rules. Without this patch, gmake -r ignores the .c.o rule. Tue May 5 01:28:12 1998 Jason Merrill * Makefile.in: Fix .SUFFIXES. Index: Makefile.in =================================================================== RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v retrieving revision 1.90 diff -c -p -r1.90 Makefile.in *** Makefile.in 1998/04/27 22:27:25 1.90 --- Makefile.in 1998/05/05 18:59:07 *************** RECOG_H = recog.h gansidecl.h *** 701,708 **** # End of language makefile fragments. # ! # Avoid a lot of time thinking about remaking Makefile.in and *.def. ! .SUFFIXES: .in .def Makefile: $(srcdir)/Makefile.in config.status $(srcdir)/version.c \ $(xmake_file) $(tmake_file) $(LANG_MAKEFILES) --- 701,710 ---- # End of language makefile fragments. # ! # The only suffixes we want for implicit rules are .c and .o, so clear ! # the list and add them. This speeds up GNU Make, and allows -r to work. ! .SUFFIXES: ! .SUFFIXES: .c .o Makefile: $(srcdir)/Makefile.in config.status $(srcdir)/version.c \ $(xmake_file) $(tmake_file) $(LANG_MAKEFILES)