Mod to log pm and deps of makefile