cflags = -Wall rule cc_rule command = gcc $cflags -c $in -o $out build foo.o: cc_rule foo.c
--
You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Spaces in variables is discussed here (just after the table of special $$ etc syntax):https://ninja-build.org/manual.html#_lexical_syntax
As you observe, you cannot put a space separated list into a variables.
-- Basile STARYNKEVITCH == http://starynkevitch.net/Basile opinions are mine only - les opinions sont seulement miennes Bourg La Reine, France
(that is, ninja don't simply do textual replacement on variables, like the sentence Ninja supports declaring shorter reusable names for strings -in section Writing your own Ninja files imply)
You remarked: but Ninja is used to build software that requires spaces in its filenames
but that could be handled in some other way (e.g. by requiring that such names have quoted spaces in them)