${Q2}${CXX} -MM ${CXXFLAGS} $< ${INCFLAGS} | \
sed 's/\(^.*\):/$(subst /,\/,${OBJSDIR}\1 $@):/' > $@
+CLEANCMDS := cleanbin cleanobjs cleandeps clean cleanall
+
.PHONY: cleanbin
cleanbin:
${Q1}${PRNTFMT} "rm" "${WORKINGDIR}"
.PHONY: clean
clean: cleanobjs
+ ${Q1}${PRNTFMT} "rm" "${TARGET}"
+ ${Q2}rm -rf ${TARGET}
.PHONY: cleanall
cleanall: clean cleanbin cleandeps
+# Do not include deps files when doing a _single_ clean operation
+ifeq ($(findstring ${MAKECMDGOALS},${CLEANCMDS}),)
+ -include ${DEPS}
+endif
--include ${DEPS}