# $Id: Makefile,v 5.10 2012/08/30 16:29:12 ksb Exp $ # master source recipe for mk-lib distribution, msrc 2008 INTO=/usr/src/local/lib/mk SUBDIR= bin dot file is m map pre type HXINCLUDE=Msrc.hxmd OTHER= SOURCE= Makefile Makefile.host Msrc.hxmd README TODO \ Machine.m4 mk.man # set to -x to trace the xapply recursion X_OPT= # SILENT allows msrcmux to work w/o the sed/perl 1d hack. Set empty # to see the recursion. SILENT=.SILENT # 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 remote_descend: ${SILENT} xapply ${X_OPT} 'cd %1 && msrc ${DOWN_CFG} -E HOST=${THOST} -y INTO=${TINTO}/%1 -- make source' ${SUBDIR} local_descend: ${SILENT} xapply ${X_OPT} 'cd %1 && mmsrc ${DOWN_CFG} -E HOST=${THOST} -y INTO=${LINTO}/%1 -- make source' ${SUBDIR} ${SOURCE}: co -u $@ source: ${SOURCE} FRC: __msrc: source