Comment by necovek

4 years ago

Not if you are careful (a bit like "$@" vs $@ in shell scripts).

Edit: replace $@ with quoted version which actually changes the behavior (I was wrong that the difference is between $* and $@).

I don’t think it’s fair to claim that any Make implementation supports spaces: there are too many fundamental bugs and breakages, so that lots of rather important Make functionality is off-limits if any of your file names will have spaces.

https://www.cmcrossroads.com/article/gnu-make-meets-file-nam... explains the situation in GNU Make in 2007 (and I don’t think it’s changed since then, though jgrahamc especially could correct me). Not being able to use such features as $^ and $(patsubst) is severely debilitating for all but the simplest of makefiles.