title: What's the best way to "package" a c application?
body: <p>Everytime I leave a c application unattended for a while, upgrade my distribution or change some packages the build immediately breaks.</p>
  
  <p>What I would need is a build system that downloads the specific library with a specific version as a .zip and installs it on the machine as part of the build process. Even better would be a local installation into a /lib folder.
  But then I also have a few dependencies, like for example the library might need libjpeg-dev for the full featureset.</p>
  
  <p>The build systems I know (make, tup, cmake) dont handle pulling dependencies. I would like something like maven for c, does that exist?</p>