makefile spanning tree kill in smart way