mkfile: build all examples & demos

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-04-24 13:21:15 +00:00
parent 545aa2341a
commit 0ca61b5953
1 changed files with 4 additions and 4 deletions

8
mkfile
View File

@ -1,7 +1,7 @@
</$objtype/mkfile
TARG=assembler debugger emulator
ROM=`{ls -p projects/examples/*.usm | grep -v blank.usm | sed 's/\.usm//g'}
USM=`{walk -f projects/ | grep '\.usm$' | grep -v blank.usm}
CFLAGS=$CFLAGS -I/sys/include/npe
BIN=/$objtype/bin/uxn
HFILES=\
@ -14,7 +14,7 @@ CLEANFILES=${TARG:%=bin/%} ${ROM:%=bin/%.rom}
default:V: all
all:V: ${TARG:%=bin/%} ${ROM:%=bin/%.rom}
all:V: ${TARG:%=bin/%} ${USM:%.usm=%.rom}
</sys/src/cmd/mkmany
@ -24,8 +24,8 @@ all:V: ${TARG:%=bin/%} ${ROM:%=bin/%.rom}
mk install &&
rm -r npe-master
bin/%.rom: projects/examples/%.usm bin/assembler
bin/assembler projects/examples/$stem.usm $target
%.rom: %.usm bin/assembler
bin/assembler $stem.usm $target && cp $target bin/
bin/assembler:Q: $O.assembler
mkdir -p bin && cp $prereq $target