~rabbits/orca-toy

f1ab909842be389cbc7ce65097067016bc9a79cc — Devine Lu Linvega 4 months ago 6f85ba2 main
Added archive command
1 files changed, 10 insertions(+), 5 deletions(-)

M makefile
M makefile => makefile +10 -5
@@ 7,22 7,27 @@ ROM=bin/${ID}.rom

all: ${ROM}

clean:
	@ rm -f ${ROM} ${ROM}.sym
lint:
	@ ${LIN} src/${ID}.tal
test:
	@ ${EMU} ${ROM} etc/tests.orca
run: ${ROM}
run: all
	@ ${EMU} ${ROM}
clean:
	@ rm -f ${ROM} ${ROM}.sym
install: ${ROM}
	@ cp ${ROM} ${DIR}
uninstall:
	@ rm -f ${DIR}/${ID}.rom
push: ${ROM}
push: all
	@ ~/bin/butler push ${ROM} hundredrabbits/${ID}:uxn
archive: all
	@ cat src/${ID}.tal src/library.tal src/manifest.tal src/assets.tal | sed 's/~[^[:space:]]\+//' > bin/res.tal
	@ ${ASM} bin/res.tal bin/res.rom && ${EMU} bin/res.rom etc/tests.orca
	@ cp bin/res.tal ../oscean/etc/${ID}.tal.txt

.PHONY: all clean lint run install uninstall push

${ROM}: src/*
	@ mkdir -p bin && ${ASM} src/${ID}.tal ${ROM}
	@ mkdir -p bin
	@ ${ASM} src/${ID}.tal ${ROM}