Sorry about the confusing title, I had a hard time describing the problem.
I have two values available to me, the first one is a constant and the second one could be any number of folder levels
BASE = application/classes
FOLDERS = types/ads
Based on those, I need to run commands like the following (in that order):
verifyDir application/classes
verifyDir application/classes/types
verifyDir application/classes/types/ads
I could also just pass all the directories to verifyDir if that’s easier
verifyDir application/classes application/classes/types application/classes/types/ads
This is within a makefile, so using gmake’s functions is acceptable.
Please don’t answer with a suggestion to restructure what I am doing. It would take way too long to explain why I need this.
I’m not a gmake master, so I can just propose a way how to achieve that using shell, may be it helps you to achieve that in gnu make…