Hi,
I have a static pattern rule like this:
%.o: %.c
gcc ...
Occasionaly, I have an additional dependency, but not always, so I added:
%.other: %.weird
compile weird
%.o: %.c %.other
gcc ...
But the entire thing fails now as no rule can be found when there is no
corresponding ".other" file.
Writing a special rule for that file is ackward because we would have to
copy the special rule to a large number of unrelated makefiles. We already
use VPATH for finding source files, and we already store all our rules in
.mk files that get included. We also use Advanced Auto-Dependency
Generation (works remarkably well).
Is there an elegant solution to this problem?
Thanks,
Martin d'Anjou
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make