mkfile: fix clean rule
This commit is contained in:
parent
0ca61b5953
commit
e792fd01b7
5
mkfile
5
mkfile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue