makefile modyfications for better automatisation