Adds Makefile

This makefile will regenerate a meta.js file, so that the script can be automatically updated.
It also introduces a pre-commit hook.