News for hackers. Stuff that matters.
Re:Makefiles – Best Practices by dewhelmed on Friday February 01, 2019 @12:00PM (#19055869)
Because CFLAGS may not be set in the environment, resulting in concatenation to an undefined variable error.
Re:Makefiles – Best Practices by jgrahamc on Friday February 01, 2019 @12:04PM (#19055912)
No such error occurs.

    $ cat Makefile
    FOO += foo

    all: ; @echo $(FOO)
    $ make
    foo
Re:Makefiles – Best Practices by dewhelmed on Monday February 04, 2019 @09:54PM (#19082713)
My bad, I felt like I've seen that error pop up before in my Makefiles, but I should have double-checked before commenting.
Re:Makefiles – Best Practices by jschwartzi on Friday February 01, 2019 @05:26PM (#19059368)
There's no such thing as an undefined variable in Make. The variable expands to text. Variables which are not defined by definition expand to no text.
Re:Makefiles – Best Practices by dewhelmed on Monday February 04, 2019 @09:54PM (#19082715)
My bad, I felt like I've seen that error pop up before in my Makefiles, but I should have double-checked before commenting.