ref: 51dce20aa4c1560e1f0d9cdc54ff0b2baf86b8eb
parent: dfdd1961a70d071736ccdc9741cfc58380674241
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Nov 6 22:51:12 EST 2024
mkfile: fix non-existent file used for builtins generation; remove generated files on errors
--- a/mkfile
+++ b/mkfile
@@ -46,14 +46,15 @@
</sys/src/cmd/mkone
-plan9/builtin_fns.h:
- sed -n 's/^BUILTIN[_]?(\(".*)/BUILTIN_FN\1/gp' `{echo $OFILES | sed 's/\.'$O'/.c/g'} | sort >$target
+plan9/builtin_fns.h:D:
+ sed -n 's/^BUILTIN[_]?(\(".*)/BUILTIN_FN\1/gp' \
+ `{ls `{echo $OFILES | sed 's/\.'$O'/.c/g'} >[2]/dev/null} | sort >$target
main_plan9.$O: plan9/builtin_fns.h
flisp.$O: maxstack.inc opcodes.h plan9/builtin_fns.h
builtins.$O: plan9/builtin_fns.h
-plan9/flisp.boot.s: flisp.boot
+plan9/flisp.boot.s:D: flisp.boot
aux/data2s boot <flisp.boot >$target
flisp.boot.$O: plan9/flisp.boot.s