.POSIX: .PHONY: env ASM=$(wildcard src/*asm) vic20term.bin: env $(ASM) build/demo.raw dasm src/main.asm -Isrc/ -f3 -T1 -sbuild/vic20term.prg.symbols.txt -obin/vic20term.bin build/demo.raw: env src/demo.bas petcat -w2 -l 1001 -o build/demo.prg -- src/demo.bas dd if=build/demo.prg of=build/demo.raw bs=1 skip=2 env: mkdir -p {bin,build}