Exporting pattern rules in recursive make# Programming - 葵花宝典
O*e
1 楼
I know one can export variables and macros from top-level
invocations of make to the sub-levels of make that are invoked
recursively. However, I have a number of static pattern rules
and implicit pattern rules that I would like to define in the
top-level makefile and have them passed down to the recursively
invoked sub-level make. Is this possible? I prefer not to
write the pattern rules into a separate file and have the top-level
and sub-level makefiles include this file.
Thanks!
invocations of make to the sub-levels of make that are invoked
recursively. However, I have a number of static pattern rules
and implicit pattern rules that I would like to define in the
top-level makefile and have them passed down to the recursively
invoked sub-level make. Is this possible? I prefer not to
write the pattern rules into a separate file and have the top-level
and sub-level makefiles include this file.
Thanks!