ref: dc3c9cb8a2056f3362607727c8e4140cc242e239
parent: 5a48547528a4b9bbe31dfc3a99f6b39ff7d8c34e
author: Ori Bernstein <[email protected]>
date: Sun Dec 21 19:42:31 EST 2014
Don't delete the source with 'mk clean' I like the source. It's my friend. I want to keep it.
--- a/libstd/mkfile
+++ b/libstd/mkfile
@@ -90,12 +90,12 @@
%.s: %+x64.s
cp $stem+x64.s $stem.s
-OBJ=${STDSRC:.myr=.o} ${SYSSRC:.myr=.o} ${STDASMSRC:.s=.o} ${SYSASMSRC:.s=.o}
-USE=${STDSRC:.myr=.use} ${SYSSRC:.myr=.use} ${STDLIB}
+OBJ=${STDSRC:%.myr=%.o} ${SYSSRC:%.myr=%.o} ${STDASMSRC:%.s=%.o} ${SYSASMSRC:%.s=%.o}
+USE=${STDSRC:%.myr=%.use} ${SYSSRC:%.myr=%.use} ${STDLIB}
.PHONY: clean
clean:V:
rm -f $OBJ
rm -f $USE
- rm -f lib$STDLIB.a lib$SYSLIB.a
+ rm -f lib${STDLIB}.a lib${SYSLIB}.a
-nuke:V: clean
\ No newline at end of file
+nuke:V: clean