Makefile: rework makefile