GNU make: Expansion Timing and Prerequisite Diagnostics

GNU make: Expansion Timing and Prerequisite Diagnostics

Choose one answer. All questions are included, with explanations after checking. No time limit. Training target: 24/30. Trace GNU make 4.4.1 read-in, recipe and secondary expansion. Diagnose recursive versus simple variables, escaped references, target-specific prerequisite mappings, explicit and pattern rule automatic variables, multi-rule accumulation, order-only prerequisites, shell boundaries and eval-generated recipes. Assumes basic rule syntax; not a complete GNU make course or a POSIX make portability test. Sources: https://www.gnu.org/software/make/manual/html_node/Appending.html https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html https://www.gnu.org/software/make/manual/html_node/Eval-Function.html https://www.gnu.org/software/make/manual/html_node/Flavors.html https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html https://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.html https://www.gnu.org/software/make/manual/html_node/Secondary-Expansion.html https://www.gnu.org/software/make/manual/html_node/Variables-in-Recipes.html https://www.gnu.org/software/make/manual/html_node/Recursive-Assignment.html https://www.gnu.org/software/make/manual/html_node/Simple-Assignment.html
1 of 30
In GNU make, output exists, input is older than output, and cache is a directory newer than output. The rule is output: input | cache. All prerequisites already exist. Does the newer cache alone make output out of date?