Improve Makefile with pattern targets