Consider a top level makefile with below content,
TEST_DIR ?= folder_1
%:
make -C $(TEST_DIR) $@
This is used to get optional argument of TEST_DIR
and perform the given target in that directory.
If I want to do a dry-run using below command,
make --dry-run all
It doesn't perform it recursively. Only top-level dry-run happens. How to solve this issue?