Fix bug with 'redundant' targets in Makefile