makefile: add clean target
makefile: add release-{patch,minor,major} targets
makefile: simplify JavaScript file generation