0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-25 15:25:12 +00:00

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

5
mkfile
View file

@ -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