Hash intermediate file name to avoid ENAMETOOLONG

Hash the intermediate Makefile target used for multi-output rules
so that it still works when the involved file names are very long.

Since the intermediate file's name is effectively arbitrary, this
does not come with notable behavioural changes.

The `import hashlib` boilerplate is taken directly
from `xcodeproj_file.py`.

BUG=
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/2019133002 .

Patch from Anna Henningsen <addaleax@gmail.com>.
1 file changed
tree: e61f0d87246730656775a55386868494b247fb05
  1. buildbot/
  2. data/
  3. pylib/
  4. samples/
  5. test/
  6. tools/
  7. .gitignore
  8. AUTHORS
  9. codereview.settings
  10. DEPS
  11. gyp
  12. gyp.bat
  13. gyp_main.py
  14. gyptest.py
  15. LICENSE
  16. OWNERS
  17. PRESUBMIT.py
  18. README.md
  19. setup.py
README.md

GYP can Generate Your Projects.

Documents are available at gyp.gsrc.io, or you can check out md-pages branch to read those documents offline.