this logic is handled by tools/makefile.