then we save the latter to a file ending in min.css.
The obvious targets are minify-css, minify-js, and minify which is dependent on both.
The less obvious targets are %.min.css and %.min.js whose purpose is to cause
the re-minification of the CSS or JS files, if the normal files are newer than the minified version.
Finally, clean will remove all the minified files, that is all *.min.css and *.min.js files.
Why Would I Use This?
Ryan Grove’s “Simple makefile to minify CSS and JS”,
the original inspiration for my Makefile,
is an excellent solution if you’re using the YUI compressor,
but YUIc requires Java (and so does Google’s closure-compiler) and I was interesting
in having this not only work without Java,
but more important work on a system that would require no special tools
beyond what you’d find standard on most *nix distros.
After all this is 2012 and we’re supposed to be using RESTful APIs and what not.
Oh, and also Mountain Lion doesn’t come with Java installed.