d2: Make guard makefile more specific