Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should Autotools output scripts and Makefiles be included in a repository?

I'm using Autotools in my project and I want to use version control.

Is it good idea to add the configure scripts and all the stuff generated by autoconf and automake (excluding symbolic links) to the repository, or simply stick only with the source files, Makefile.am, and configure.ac?

like image 488
BoatX Avatar asked Dec 12 '25 05:12

BoatX


1 Answers

As a thumb-rule, its best to NOT include generated files as it hampers portability.

For example: You uploaded files for your PC (PC1) having PATH configuration stored in them. Your collaborator downloaded your generated files to run on another computer PC2 but couldn't as the generated files pointed to a different PATH which did not exist in PC2.

However, you may add the generated files to version control when you need to archive outputs and you don't have a dedicated backup server. If you know what you're doing and have a good reason to do so, you're fine.

Hope this helps!

like image 138
Manav Kataria Avatar answered Dec 14 '25 03:12

Manav Kataria



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!