Makedepend - Purpose

Purpose

When building C language projects, it is imperative for incremental compilation (and useful for clean compilation) to be able to track dependencies between compilation units. C expresses interfaces between compilation units via header files; as such, it is often necessary to rebuild a compilation unit when a header it includes is changed. make needs to be informed of these dependencies.

makedepend solves this problem by parsing the code of C source files to generate a list of dependencies (those header files included directly and indirectly). It is able to understand conditional compilation constructs so as to not generate excessive dependencies. It then appends rules expressing the dependencies to the Makefile.

Read more about this topic:  Makedepend

Famous quotes containing the word purpose:

    In considering the policy to be adopted for suppressing the insurrection, I have been anxious and careful that the inevitable conflict for this purpose shall not degenerate into a violent and remorseless revolutionary struggle.
    Abraham Lincoln (1809–1865)

    War is in truth a disease in which the juices that serve health and maintenance are used for the sole purpose of nourishing something foreign, something at odds with nature.
    Johann Wolfgang Von Goethe (1749–1832)

    And is the price for your acceptance for me to conform? To be as you would want me to be?... You must accept me as I am. Do not question.... If my behavior seems different perhaps it is because it serves a higher purpose than to find acceptance in this dull and useless world.
    Pat Fielder, and Paul Landres. Dracula (Francis Lederer)