bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automatic prerequisite problems


From: Paul D. Smith
Subject: Re: automatic prerequisite problems
Date: Fri, 11 Nov 2005 15:39:18 -0500

%% "Marty Leisner" <address@hidden> 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 <address@hidden>          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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]