# makefile for tetris1k
#
# This needs zmac, available from:
# - http://www.nenie.org/cpcip/index.html#zmac
# - ftp://ftp.ibiblio.org/pub/Linux/devel/lang/assemblers/

all: tetris1k.p

tetris1k.p: tetris1k.z bin2psml
	zmac tetris1k.z
	./bin2psml tetris1k.bin tetris1k.p

# assumes this source is in an `src' subdir
install: tetris1k.p
	cp tetris1k.p ..

clean:
	$(RM) *~ *.bin *.lst bin2psml

distclean: clean
	$(RM) tetris1k.p

tgz: ../src.tar.gz

../src.tar.gz: distclean
	cd ..;tar zcvf src.tar.gz src
