X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=rules.mk;h=0e2221df181358f28d19383e965ed45fe16f38bf;hb=ccb31c84afaca323834da213b07eaa1cb61cd37b;hp=b7387de0c76557bb6c10a3865f1a5950447b4f9c;hpb=c569b5d1b05f471fb5d89d0ed9aea5c4fffe4eb3;p=physics.git diff --git a/rules.mk b/rules.mk index b7387de..0e2221d 100644 --- a/rules.mk +++ b/rules.mk @@ -20,20 +20,16 @@ ${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D} ${TARGET_$P}: ${TARGETTMP_$P} | $${@D} ${cmd-cp} -# how to copy a library to the bin directory -#${BINDIR_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D} -# ${cmd-cp} - # rule to copy the config files into the working directory -${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $$(dir $$@) +${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $${@D} ${cmd-cp} # rule to copy the library files into the working directory -${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $$(dir $$@) +${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $${@D} ${cmd-cp} # rule to copy the text files into the working directory -${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $$(dir $$@) +${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $${@D} ${cmd-cp} # rule to make an object file from a .cpp @@ -45,34 +41,7 @@ ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D} ${cmd-cpptodep} -L_CLEANCMDS += cleanbin-$P -cleanbin: cleanbin-$P -.PHONY: cleanbin-$P -cleanbin-$P: - ${Q1}${PRNTFMT} "rm" "${BINDIR}" - ${Q2}rm -rf ${BINDIR} - -L_CLEANCMDS += cleanobjs-$P -cleanobjs: cleanobjs-$P -.PHONY: cleanobjs-$P -cleanobjs-$P: - ${Q1}${PRNTFMT} "rm" "${OBJSDIR}" - ${Q2}rm -rf ${OBJSDIR} - -L_CLEANCMDS += cleandeps-$P -cleandeps: cleandeps-$P -.PHONY: cleandeps-$P -cleandeps-$P: - ${Q1}${PRNTFMT} "rm" "${DEPSDIR}" - ${Q2}rm -rf ${DEPSDIR} - -L_CLEANCMDS += clean-$P -clean: clean-$P -.PHONY: clean-$P -clean-$P: cleanobjs-$P cleanbin-$P - -L_CLEANCMDS += cleanall-$P -cleanall: cleanall-$P -.PHONY: cleanall-$P -cleanall-$P: cleanbin-$P cleanobjs-$P cleandeps-$P +T := $P + include Makefile.d/cleanrules.mk +T :=