# Makefile - Don Yang (uguu.org)
#
# 2015-07-12


width = 100
height = `perl -e 'print int($(width) * 0.49)'`

target = kosaki.txt

all: $(target)
	@perl freq.pl $(target)

kosaki.txt: kosaki.png Makefile
	perl anytotxt.pl $< $(width) $(height) | perl trim_space.pl > $@

clean:
	-rm -f $(targets)

backup:
	-rm -f backup.tar.xz
	tar cf backup.tar *.pl *.cdr Makefile
	xz -9 backup.tar
