shithub: mc

Download patch

ref: 18c7dda69e7a9d42088098a70e28cfb731b8c3a8
parent: ae0b1ca613d44f31b5ec17cd58148ac13fdb7f0f
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