Re: Makefile .SUFFIXES

2009-03-17 Thread Marc Espie
On Mon, Mar 16, 2009 at 01:10:33PM -0400, Stuart Cassoff wrote: > Must .SUFFIXES declarations come before targets? Yes. That's one of the many subtleties of Makefiles. There are a few things which must occur in a specific order to work. For a line such as: .c.o: to be parsed as a SUFFIX rule, y

Makefile .SUFFIXES

2009-03-16 Thread Stuart Cassoff
Must .SUFFIXES declarations come before targets? This doesn't work for me: $ cat Makefile all: a.x .q.x: cp $< $@ .SUFFIXES: .q .x $ touch a.q $ make make: don't know how to make a.x. Stop in /home/stu/mt. But this