make include directive and dependency generation with -MM

后端 未结 3 1207
傲寒
傲寒 2020-12-16 07:07

I want a build rule to be triggered by an include directive if the target of the include is out of date or doesn\'t exist.

Currently the makefile looks like this:

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 07:44

    The include directives work like they do in C and C++ - they are processed before anything else happens, to build the "real" makefile that make then processes. Specifically, they are processed before any rules are fired.

提交回复
热议问题