2024-08-25 17:49:47 -04:00
|
|
|
ID=m291
|
|
|
|
DIR=~/roms
|
|
|
|
ASM=uxncli ${DIR}/drifblim.rom
|
|
|
|
LIN=uxncli ${DIR}/uxnlin.rom
|
|
|
|
EMU=uxn11
|
|
|
|
ROM=bin/${ID}.rom
|
|
|
|
|
|
|
|
all: ${ROM}
|
|
|
|
|
|
|
|
lint:
|
2024-08-25 18:58:25 -04:00
|
|
|
@ ${LIN} src/${ID}.tal
|
2024-08-25 17:49:47 -04:00
|
|
|
run: all
|
|
|
|
@ ${EMU} ${ROM}
|
|
|
|
clean:
|
|
|
|
@ rm -f ${ROM} ${ROM}.sym
|
|
|
|
install: ${ROM}
|
|
|
|
@ cp ${ROM} ${DIR}
|
|
|
|
uninstall:
|
|
|
|
@ rm -f ${DIR}/${ID}.rom
|
2024-08-26 23:24:11 -04:00
|
|
|
archive:
|
|
|
|
cat src/${ID}.tal src/assets.tal | sed 's/~[^[:space:]]\+//' > ~/Git/oscean/etc/${ID}.tal.txt
|
|
|
|
uxnasm ~/Git/oscean/etc/${ID}.tal.txt ${ROM}
|
|
|
|
@ ${EMU} ${ROM}
|
2024-08-25 17:49:47 -04:00
|
|
|
|
|
|
|
.PHONY: all clean lint run install uninstall archive
|
|
|
|
|
|
|
|
${ROM}: src/${ID}.tal
|
|
|
|
@ mkdir -p bin
|
|
|
|
@ ${ASM} src/${ID}.tal ${ROM}
|