uxn-utils/gui/notepad/makefile

30 lines
617 B
Makefile
Raw Normal View History

2024-05-26 22:35:57 -04:00
ID=notepad
DIR=~/roms
ASM=uxncli ${DIR}/drifblim.rom
LIN=uxncli ${DIR}/uxnlin.rom
EMU=uxn11
ROM=bin/${ID}.rom
all: ${ROM} src/assets.tal
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: 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
2024-05-27 23:01:57 -04:00
@ cp bin/res.tal ../../../oscean/etc/${ID}.tal.txt
2024-05-26 22:35:57 -04:00
.PHONY: all clean lint run install uninstall archive
${ROM}: src/*
@ mkdir -p bin
@ ${ASM} src/${ID}.tal ${ROM}