add intermediate mark to makefile