I'm running a recursive make on windows using targets for each directory using forward slashes to separate path components. If someone runs
> make foo/bar
it will run fine. But if someone runs
> make foo\bar
it won't find the target to build:
make: Nothing to be done for `foo\bar'.
I would love it if I could add something like this to my top level Makefile:
MAKECMDGOALS = $(subst \,/,$(MAKECMDGOALS))
But such things do not work. MAKECMDGOALS can only be read. Or even if I can make backslash targets for all my regular targets like this:
$(DIRS): %: $(subst /,\,%)
But this too doesn't work. Whats the best way around this?