LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Which dependency is causing rebuild? (https://www.linuxquestions.org/questions/linux-kernel-70/which-dependency-is-causing-rebuild-803361/)

johnu 04-21-2010 03:00 PM

Which dependency is causing rebuild?
 
Is there a way to determine which dependency is causing a file in a kbuild makefile to run? (I've fixed my directory woes, but some of the files are still rebuilding and I want to know why!)


I'd also be interested to know if there's someway of doing this with a regular makefile as well.

Thanks

John

jcomeau_ictx 05-22-2010 06:03 PM

I don't use kbuild, but GNU make dependencies can be checked with: make -d

Or to check only, and don't actually build: make -n -d

It generates a LOT of output, and it can be hard to locate what you need to know.


All times are GMT -5. The time now is 10:20 PM.