30 lines
575 B
Makefile
30 lines
575 B
Makefile
ID=m291
|
|
DIR=~/roms
|
|
ASM=uxncli ${DIR}/drifblim.rom
|
|
LIN=uxncli ${DIR}/uxnlin.rom
|
|
EMU=uxn11
|
|
ROM=bin/${ID}.rom
|
|
|
|
all: ${ROM}
|
|
|
|
lint:
|
|
@ ${LIN} src/${ID}.tal
|
|
run: all
|
|
@ ${EMU} ${ROM}
|
|
clean:
|
|
@ rm -f ${ROM} ${ROM}.sym
|
|
install: ${ROM}
|
|
@ cp ${ROM} ${DIR}
|
|
uninstall:
|
|
@ rm -f ${DIR}/${ID}.rom
|
|
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}
|
|
|
|
.PHONY: all clean lint run install uninstall archive
|
|
|
|
${ROM}: src/${ID}.tal
|
|
@ mkdir -p bin
|
|
@ ${ASM} src/${ID}.tal ${ROM}
|