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?
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With