hack hack hack. this patch is very sad. to prevent problems with mkfiles bombing out on missing directories, the $BIN/% rule in mkmany was modified like so (this has been a problem with installing fresh 9atom): $BIN: mkdir -p $BIN $BIN/%: $BIN $O.% cp $O.$stem $BIN/$stem this works for everything, except for /sys/src/ape/cmd where the rules install.rc:V: $BIN/psh $BIN/%: %.rc cp -x $stem.rc $BIN/$stem give this diagnostic mk: ambiguous recipes for /arm/bin/ape/psh: /arm/bin/ape/psh <-(/sys/src/cmd/mkmany:34)- /arm/bin/ape <-(/sys/src/cmd/mkmany:31)- /arm/bin/ape/psh <-(mkfile:56)- psh.rc i really don't understand why this is causing a problem, since there is no psh.$O, and there's no way to build it. the fix is simply to make the rule less general. Reference: /n/atom/patch/applied/apecmdmkhack Date: Sun Jan 3 18:17:45 CET 2016 Signed-off-by: quanstro@quanstro.net --- /sys/src/ape/cmd/mkfile Sun Jan 3 18:10:31 2016 +++ /sys/src/ape/cmd/mkfile Sun Jan 3 18:10:33 2016 @@ -52,5 +52,8 @@ install.rc:V: $BIN/psh -$BIN/%: %.rc - cp -x $stem.rc $BIN/$stem +#$BIN/%: %.rc +# cp -x $stem.rc $BIN/$stem + +$BIN/psh: psh.rc + cp -x psh.rc $BIN/psh