From: Patrik Gornicz Date: Thu, 22 Jan 2009 00:01:16 +0000 (-0500) Subject: change how Make triggers cleans X-Git-Tag: v0.10~14 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=commitdiff_plain;h=4537196fcb623470c4c36990ad47b1c59172afb3 change how Make triggers cleans --- diff --git a/Makefile b/Makefile index 77463d3..e61452c 100644 --- a/Makefile +++ b/Makefile @@ -106,20 +106,26 @@ ${DSTCFGDIR}%.cfg: ${SRCCFGDIR}%.cfg | $$(dir $$@) ${Q1}${PRNTFMT} "cp" "$@" ${Q2}cp $< $@ +.PHONY: cleantargets +cleantargets: + ${Q1}${PRNTFMT} "rm" "${TARGET} ${TARGETTMP}" + ${Q2}rm -f ${TARGET} -.PHONY: clean -clean: +.PHONY: cleanobjs +cleanobjs: ${Q1}${PRNTFMT} "rm" "${OBJSDIR}" ${Q2}rm -rf ${OBJSDIR} - ${Q1}${PRNTFMT} "rm" "${TARGET} ${TARGETTMP}" - ${Q2}rm -f ${TARGET} -.PHONY: distclean -distclean: clean +.PHONY: cleandeps +cleandeps: ${Q1}${PRNTFMT} "rm" "${DEPSDIR}" ${Q2}rm -rf ${DEPSDIR} - ${Q1}${PRNTFMT} "rm" "tags prof gmon.out" - ${Q2}rm -f tags prof gmon.out + +.PHONY: clean +clean: cleantargets cleanobjs + +.PHONY: cleanall +cleanall: clean cleandeps .PHONY: gitclean gitclean: