# $Id: Package.meta,v 1.2 2013/01/04 14:47:26 ksb Exp $ # platform recipe for %% Pkg name %% distriburtion RELEASE=%% this release number x.y %% INTO=/usr/src/Pkgs/%% Pkg name %%-${RELEASE} SUBDIR= local/%% repeat for each dir you build in Makefile %% GEN= SOURCE= Makefile Makefile.host README INSTALL ITO.spec # Pkgs is not a directory we should look at for this process. --ksb #MFLAGS and DESTDIR from command-line DESTDIR= MAKE=make all install: mmsrc -Cauto.cf ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} $@ clean: FRC mmsrc -Cauto.cf ${MAKE} ${MFLAGS} DESTDIR=${DESTDIR} $@ rm -f ${GEN} # 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 source' ${SUBDIR} local_descend: xapply ${X_OPT} 'cd %1 && mmsrc ${DOWN_CFG} -E HOST=${THOST} -y INTO=${LINTO}/%1 -- make source' ${SUBDIR} source: ${SOURCE} ${GEN} ${SOURCE}: co -q $@ FRC: # msrc patch to get up-to-date and checked-out sources __msrc: source