# $Id: Makefile,v 1.25 2012/12/20 23:53:02 ksb Exp $ # master source Makefile for op(1) rules, msrc 2008 INTO=/usr/src/local/lib/op SUBDIR= class hosttype service remote libexec GEN= SOURCE= Makefile Makefile.host README README.FEDEX TODO BUGs \ Msrc.hxmd op.cf.man sane.pl op.cf service.html # set to -x to trace the xapply recursion X_OPT= # N.B. find the my* macros for the next 2 targets in Msrc.hxmd remote_descend: .SILENT xapply ${X_OPT} 'cd %1 && CLASS="-DCLASS=${myClass}" msrc -y SERVICES=${mySvcs} ${downCfg} -E HOST=${myHost} -y INTO=${myInto}/%1 -- make source' ${SUBDIR} local_descend: .SILENT xapply ${X_OPT} 'cd %1 && mmsrc -y SERVICES=${mySvcs} ${downCfg} -E HOST=${myHost} -y INTO=${myInto}/%1 -- make source' ${SUBDIR} # The line below is local site policy, use the most common hosttype locally. DEF_HOSTTYPE=FREEBSD sane: FRC find . -name \*.host -print |grep -v ,v |\ xapply -f 'm4 -DHOSTTYPE=${DEF_HOSTTYPE} -I hosttype -I /usr/local/lib/hxmd <%1 >/dev/null || echo m4: chokes on %1' - ./sane.pl dmz.cf sac.cf clean: FRC rm -f ${GEN} source: ${SOURCE} ${GEN} ${SOURCE}: co -q $@ FRC: # msrc patch to get up-to-date and checked-out sources __msrc: source