I run recursive make on windows, using targets for each directory, using slashes to separate path components. If someone starts
> make foo/bar
it will work fine. But if someone starts
> make foo\bar
he will not find the target for the assembly:
make: Nothing to be done for `foo\bar'.
I would love it if I could add something similar to my top level Makefile:
MAKECMDGOALS = $(subst \,/,$(MAKECMDGOALS))
But such things do not work. MAKECMDGOALS can only be read. Or even if I can do a backslash for all my usual purposes, for example:
$(DIRS): %: $(subst /,\,%)
But that doesn't work either. How can this be done?
source
share