I am new to makefiles. I want to recursively find all the files in a root_folder and store it to a variable. The code I have written to achieve this in makefile is as below:
dirs:=$(root_folder)/*/
SOURCE:=$(foreach dir,$(dirs),$(wildcard $(dir)/*.cpp))
But the .cpp files are not getting included to the SOURCE variable with this implementation.I think my approach is wrong.Any help in this matter will much be appreciated.
Regards,
newbie_in