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 does:

$ cat Makefile
all: a.x

.SUFFIXES: .q .x

.q.x:
       cp $< $@


$ make
cp a.q a.x


Grateful for any advice,

Stu

Reply via email to