Is there a way to generate a gitignore from a makefile?
Posted
by Kinopiko
on Stack Overflow
See other posts from Stack Overflow
or by Kinopiko
Published on 2010-04-07T01:02:19Z
Indexed on
2010/04/07
1:03 UTC
Read the original article
Hit count: 461
version-control
|makefile
I have a lot of files such as JavaScript, HTML, and even C and C header (.h) files which are automatically generated, so they appear in the makefile like
myfile.js: myfile.js.tmpl
etc. I want all of these target files to be ignored by the version control system. I am using git but this question is not git-specific. Is there a utility or a trick which exists to make the ignore file (like .gitignore
) from a makefile?
(If there isn't such a facility, I can make a script to create one, but before I do that I am just checking I haven't missed some obvious tool or method.)
© Stack Overflow or respective owner