%% gk <[EMAIL PROTECTED]> writes:

  g> I am using the following ifneq, which seems good enough for my purposes.
  g> $(afile) is a file that may or may not exist.
  g> Thanks for the insights.

  g> ifneq (,$(wildcard $(afile)))
  g> target: $(afile)
  g>          @touch $@
  g> else
  g> target:
  g>          @touch $@
  g> endif


Why not just:

  target: $(wildcard $(afile))
            @touch $@

?

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


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

Reply via email to