Makefile: refactoring and adding desktop notifications support