# Makefile - Don Yang (uguu.org)
#
# 06/17/12

width = 127
height = `perl -e 'print int($(width) * 0.38)'`

all: nyaruko.txt

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

clean:
	-rm -f nyaruko.txt

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