%% Alexandre Duret-Lutz <[EMAIL PROTECTED]> writes:

  adl> Say I am able to construct a file F.OUT, from a file F.IN and
  adl> another file F.OPT that is optional.  That is, I can always build
  adl> F.OUT from F.IN but the presence of F.OPT can specify additional
  adl> constraints on the built and I don't want that make try to create
  adl> OPT if it is missing.

There is no way to do that currently, short of hacks such as the one you
propose.

But, make doesn't care one bit about files your build may or may not
use, that it doesn't know about.  So, if all you want to do is have an
extra file used during the build of F.OUT that make shouldn't care
about, you can just leave it out of the makefile altogether.

I assume you have some specific behavior you want make to undertake WRT
to this "optional" file; can you be more specific?

Do you mean that if the file doesn't exist, it should be ignored
completely by make, but if it does exist it should go through all the
"normal" prerequisite processing (making sure it's up-to-date, etc.)?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.ultranet.com/~pauld/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to