How to properly do asset versioning?

2016-08-07 Thread Glen Huang
Hi, I'm trying to do asset versioning with make, but the solution I came up with isn't perfect. I want to minify `src/foo.js` and then copy the minified content to `dist/foo.[hash].js`, where `[hash]` is the sha1 hash of minified content. Right now I do it like this: ```make .DEFAULT_GOAL = a

GNU make - "file has not been updated" but it definitely has

2016-08-07 Thread Adrian Muresan
I'm building my `make` project using `--print-data-base` and then parsing the output database for use in another step. The database contains ALL targets defined in the makefile even if one or more were not built. Thankfully, in the database section of `make` output, whether a given target was