Problem scenario
You are running "autoreconf --install" but you get this type of error:
"Makefile.am:2: warning: variable 'hello_SOURCES' is defined but no program or
Makefile.am:2: library has 'hello' as canonical name (possible typo)
autoreconf: automake failed with exit status: 1"
How do you modify Makefile.am to not have this error when running "autoreconf --install"?
Solution
In the Makefile.am file, remove the "hello_" from the stanza "hello_SOURCES".
For example, use this stanza (with no "hello"):
SOURCES = main.c
Some examples online have different naming conventions for this stanza. It can be called just "SOURCES".