commit e792fd01b756238a6e25a18aef57782d65a20460
parent 0ca61b595388185d20607d4cbc17c40de402fa3b
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date: Sat, 24 Apr 2021 15:14:29 +0000
mkfile: fix clean rule
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mkfile b/mkfile
@@ -2,6 +2,7 @@
TARG=assembler debugger emulator
USM=`{walk -f projects/ | grep '\.usm$' | grep -v blank.usm}
+ROM=${USM:%.usm=%.rom}
CFLAGS=$CFLAGS -I/sys/include/npe
BIN=/$objtype/bin/uxn
HFILES=\
@@ -10,11 +11,11 @@ HFILES=\
src/ppu.h\
src/uxn.h\
-CLEANFILES=${TARG:%=bin/%} ${ROM:%=bin/%.rom}
+CLEANFILES=${TARG:%=bin/%} `{echo $ROM | sed 's,([^ /]+/)+,bin/,g'}
default:V: all
-all:V: ${TARG:%=bin/%} ${USM:%.usm=%.rom}
+all:V: ${TARG:%=bin/%} $ROM
</sys/src/cmd/mkmany