Makefile: rewrite and simplify