Makefile: add target awareness to install markers and build rules (with fallback to default rule)