%% "Marty Leisner" <[EMAIL PROTECTED]> writes:

  ml> ifneq (,$(findstring clean,$(MAKECMDGOALS)))
  ml> NO_DEPENDS=1
  ml> endif

  ml> ifndef NO_DEPENDS
  ml> -include $(DEPS)
  ml> endif

  ml> I've seen this annoying behavior for years...is there a better
  ml> wah t handle this?

No fundamentally better way.  You can be a bit more restrictive of what
you match on by using filter/filter-out for pattern matching instead of
findstring, but that's about it.

-- 
-------------------------------------------------------------------------------
 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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to