# $Id: Makefile.recurse,v 5.4 2013/01/04 14:57:13 ksb Exp $ # top-level makefile hooks for recursion %% Add to msrc macro list, copy the file in or merge it %% HXINCLUDE=Msrc.hxmd %% Add to SOURCE too %% %% Add below all %% # Loop-back from Msrc.hxmd, for local or remote updates, at PRE_CMD. # Please find DOWN_CFG, THOST, TINTO, and LINTO defined in Msrc.hxmd. --ksb # Set to -x to trace the xapply recursion. X_OPT= remote_descend: xapply ${X_OPT} 'cd %1 && msrc ${DOWN_CFG} -E HOST=${THOST} -y INTO=${TINTO}/%1 -- ${MAKE} TOP=${TOP} DESTDIR=${DESTDIR} source' ${SUBDIR} local_descend: xapply ${X_OPT} 'cd %1 && mmsrc ${DOWN_CFG} -E HOST=${THOST} -y INTO=${LINTO}/%1 -- ${MAKE} TOP=${TOP} DESTDIR=${DESTDIR} source' ${SUBDIR} %% then the GEN targets come next, then the clean target %%