help-make
[Top][All Lists]
Advanced

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

Re: autodependencies and make clean target


From: Martin d'Anjou
Subject: Re: autodependencies and make clean target
Date: Thu, 9 Oct 2003 10:38:16 -0400 (EDT)

Someone suggested this:

> >>>>> "Martin" == Martin d'Anjou <address@hidden> writes:
> 
>     Martin> Hi, When I type make clean, make rebuilds the dependency
>     Martin> files before executing the commands in the clean target.
>     Martin> I follow the methodology described at the paulandlesley
>     Martin> site.
> 
> i don't know what that methodology is offhand, but you might wrap
> your "include" with something that checks your target, like this:
> 
> ifneq ($(MAKECMDGOALS),clean)
> -include $(deps)
> endif

And it works very well for my situation. Thanks a lot!

Martin






reply via email to

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