Subject: Re: make seems to find the wrong source file
To: David Laight <firstname.lastname@example.org>
From: Simon J. Gerraty <email@example.com>
Date: 01/11/2004 17:19:30
The behavior you cite is not restricted to .OPTIONAL
>With the following makefile:
>.SUFFIXES: .a .b
>all: .PHONY x.b
> echo $<
If you add an explicit script for x.b as in
@echo "Make $@ from $?"
then make will use that (as will gmake fwiw).
gmake won't use the .a.b rule if the explict script is missing
>If I fix it, is anything else likely to break?
You can almost guarantee that you'll break something ;-)