tune Makefile for proper dependencies