ref: 746a99e10d8f0648c289f1271c946e7f57647146
parent: c8fcefb38b34cc2bfffed5544ef967439a1a0d6e
author: cinap_lenrek <[email protected]>
date: Mon Mar 18 03:15:09 EDT 2019
python: clean and nuke pgen and libpython.a for all $CPUS
--- a/sys/src/cmd/python/Parser/mkfile
+++ b/sys/src/cmd/python/Parser/mkfile
@@ -16,7 +16,7 @@
parsetok.$O\
tokenizer.$O\
-CLEANFILES=pgen.$objtype
+CLEANFILES=`{echo pgen.^($CPUS)}
</sys/src/cmd/mksyslib
--- a/sys/src/cmd/python/mkfile
+++ b/sys/src/cmd/python/mkfile
@@ -31,5 +31,5 @@
clean nuke:V:
for(i in $LIBDIRS) @{cd $i && mk $target}
rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $OFILES
- rm -f libpython.a[$OS] libextra.a[$OS] /$objtype/lib/ape/libpython.a
+ rm -f libpython.a[$OS] libextra.a[$OS] /^($CPUS)^/lib/ape/libpython.a
rm -f config.c Extra/config