mirror of https://git.sr.ht/~rabbits/uxnlin
33 lines
707 B
Makefile
33 lines
707 B
Makefile
ID=uxnlin
|
|
DIR=~/roms
|
|
ASM=uxncli ${DIR}/drifblim.rom
|
|
LIN=uxncli ${DIR}/uxnlin.rom
|
|
BAL=uxncli ${DIR}/uxnbal.rom
|
|
EMU=uxncli
|
|
ROM=bin/${ID}.rom
|
|
|
|
all: ${ROM}
|
|
|
|
lint:
|
|
@ ${LIN} src/${ID}.tal
|
|
bal:
|
|
@ ${BAL} src/${ID}.tal
|
|
run: all
|
|
@ ${EMU} ${ROM} etc/example.tal
|
|
clean:
|
|
@ rm -f ${ROM} ${ROM}.sym
|
|
install: all
|
|
@ cp ${ROM} ${DIR}
|
|
uninstall:
|
|
@ rm -f ${DIR}/${ID}.rom
|
|
archive: all
|
|
@ cat src/${ID}.tal src/assets.tal | sed 's/~[^[:space:]]\+//' > bin/res.tal
|
|
@ ${ASM} bin/res.tal bin/res.rom && ${EMU} bin/res.rom etc/example.tal
|
|
@ cp bin/res.tal ../oscean/etc/${ID}.tal.txt
|
|
|
|
.PHONY: all clean lint run install uninstall archive
|
|
|
|
${ROM}: src/${ID}.tal src/assets.tal
|
|
@ mkdir -p bin && ${ASM} src/${ID}.tal ${ROM}
|
|
|