Which file would I need to edit to add additional files to an existing make system? There are three files:
Makefile.am
Makefile.in
Makefile
They all contain information about the sources that are being used. I assume it is the Makefile.am, becaue in Makefile.in it says “generated by automake”. My question is though: How can I tell the system to regenerate Makefiles with my changes, but without changing anything else?
Make your modifications to
Makefile.am, and runmake. This should trigger a call toautomake(to regenerateMakefile.in) and then toconfigureto regeneratedMakefile.In some projects these rebuild rules are disabled and nothing will happen. In that case you have to run
./configure --enable-maintainer-modefirst to enabled these.