I need to recursively get list of all subdirectories of a given top level directory. On an UNIX system, I can do it like this:
SUBDIRS := $(shell find $(TOP_DIR) -type d)
However, I need a solution which would be platform independent or at least a solution which works on Windows.
It should be possible to do using recursive wildcards (see this question) but I need to adapt this solution to work for directories instead of files.