alisdair / jsmn-example

Sample code for using Serge Zaitsev's awesome jsmn JSON parsing library
http://alisdair.mcdiarmid.org/2012/08/14/jsmn-example.html
Other
100 stars 30 forks source link

Unnecessary make target for .gitignore #1

Closed JAChapmanII closed 12 years ago

JAChapmanII commented 12 years ago

Is there some reason you have a make target for the .gitignore instead of just committing something like:

*.o
github
twitter

Either way you have to manually update a file whenever you change the binary targets/names. Is it simply to keep the manual changes centralized to the Makefile?

It's not wholly relevant, but do you have an explicit .o from .c rule because you don't like to use implied rules?

alisdair commented 12 years ago

Good point on the .gitignore Makefile target, I had somehow completely forgotten about globbing.

I just didn't know about the built-in rule for .o.c. Nothing against implied rules.

Thanks for your feedback!

JAChapmanII commented 12 years ago

No problem; I'm glad to be able to offer something :)