Martin d'Anjou wrote:

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.



You might want to start by :


%.o:: %.c
        gcc...

%.o:: %.c %.other
        gcc...

to make sure that `make' knows you have more than one way to
update a `.o' file.

Just a hint,

HTH,
                               -Tristan





_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to