mkfile: fix clean rule

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-04-24 15:14:29 +00:00
parent 0ca61b5953
commit e792fd01b7
1 changed files with 3 additions and 2 deletions

5
mkfile
View File

@ -2,6 +2,7 @@
TARG=assembler debugger emulator TARG=assembler debugger emulator
USM=`{walk -f projects/ | grep '\.usm$' | grep -v blank.usm} USM=`{walk -f projects/ | grep '\.usm$' | grep -v blank.usm}
ROM=${USM:%.usm=%.rom}
CFLAGS=$CFLAGS -I/sys/include/npe CFLAGS=$CFLAGS -I/sys/include/npe
BIN=/$objtype/bin/uxn BIN=/$objtype/bin/uxn
HFILES=\ HFILES=\
@ -10,11 +11,11 @@ HFILES=\
src/ppu.h\ src/ppu.h\
src/uxn.h\ src/uxn.h\
CLEANFILES=${TARG:%=bin/%} ${ROM:%=bin/%.rom} CLEANFILES=${TARG:%=bin/%} `{echo $ROM | sed 's,([^ /]+/)+,bin/,g'}
default:V: all default:V: all
all:V: ${TARG:%=bin/%} ${USM:%.usm=%.rom} all:V: ${TARG:%=bin/%} $ROM
</sys/src/cmd/mkmany </sys/src/cmd/mkmany