help-make
[Top][All Lists]
Advanced

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

Re: "generating prerequisites automatically" causes all *.d makefiles to


From: Stephan Beal
Subject: Re: "generating prerequisites automatically" causes all *.d makefiles to be regenerated?
Date: Mon, 19 Oct 2009 12:45:47 +0200

On Mon, Oct 19, 2009 at 10:43 AM, Mark Galeck (CW) <address@hidden> wrote:

>make clean 

Then again, all the *.d files are generated first, takes a very long time, before everything is deleted. 


i think the general workaround for that is to skip generation when clean is running:

ifneq (,$(strip $(filter distclean clean,$(MAKECMDGOALS))))
# $(warning Skipping C/C++ deps generation.)
...
else
...
endif

but the placement depends on how your rules are structured (and is easier if you generate only one dep file, though that has other problems compared to .d files).

--
----- stephan beal
http://wanderinghorse.net/home/stephan/

reply via email to

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