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:
parent
0ca61b5953
commit
e792fd01b7
1 changed files with 3 additions and 2 deletions
5
mkfile
5
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue