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 </$objtype/mkfile
TARG=assembler debugger emulator 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 CFLAGS=$CFLAGS -I/sys/include/npe
BIN=/$objtype/bin/uxn BIN=/$objtype/bin/uxn
HFILES=\ HFILES=\
@ -14,7 +14,7 @@ CLEANFILES=${TARG:%=bin/%} ${ROM:%=bin/%.rom}
default:V: all default:V: all
all:V: ${TARG:%=bin/%} ${ROM:%=bin/%.rom} all:V: ${TARG:%=bin/%} ${USM:%.usm=%.rom}
</sys/src/cmd/mkmany </sys/src/cmd/mkmany
@ -24,8 +24,8 @@ all:V: ${TARG:%=bin/%} ${ROM:%=bin/%.rom}
mk install && mk install &&
rm -r npe-master rm -r npe-master
bin/%.rom: projects/examples/%.usm bin/assembler %.rom: %.usm bin/assembler
bin/assembler projects/examples/$stem.usm $target bin/assembler $stem.usm $target && cp $target bin/
bin/assembler:Q: $O.assembler bin/assembler:Q: $O.assembler
mkdir -p bin && cp $prereq $target mkdir -p bin && cp $prereq $target