Makefile does not require to bound variable values by quotes.
For instance this will be accepted:
a := ls -l -a > out.txt
My problem is: If I want to do something like this:
a := ls -l -a > out
b := .txt
c := $(a)$(b)
If end of the line of variable $(a) has a white space, variable $(c) will look like this:
ls -l -a > out .txt
With white space after out
!
This can cause errors.
Is there a way to globally ignore white spaces at end of line of all makefile variable values?
ls
assl
orcat
ascta
and countless other trivial errors? – cas Mar 24 '16 at 02:49alias cta=cat
but that just encourages your users to become lazy and careless in what they type at the command line....because they become used to being protected from their own carelessness. protected until they run into a typo or other common mistake you haven't thought of. – cas Mar 24 '16 at 02:51