# HG changeset patch # User John Tsiombikas # Date 1453166963 -7200 # Node ID 04fc17db12e6a2ed0411184c0ef51813c8cb272c # Parent 34ec0f897aa34276f994085a335b4549a1678261 slightly better makefile diff -r 34ec0f897aa3 -r 04fc17db12e6 Makefile --- a/Makefile Tue Jan 19 03:25:08 2016 +0200 +++ b/Makefile Tue Jan 19 03:29:23 2016 +0200 @@ -1,10 +1,29 @@ -tap = test.tap +name = test +tap = $(name).tap +wav = $(name).wav ASFLAGS = --alocal $(tap): test.asm pasmo $(ASFLAGS) --tapbas $< $@ +$(name).bin: test.asm + pasmo $(ASFLAGS) $< $@ + +$(wav): $(tap) + tape2wav $< $@ + +.PHONY: clean +clean: + rm -f $(tap) $(wav) $(name).bin + +.PHONY: wav +wav: $(name).wav + +.PHONY: play +play: $(name).wav + mpv --no-video $< + .PHONY: run run: $(tap) fuse-sdl $(tap)