# Makefile - Don Yang (uguu.org)
#
# 07/05/07


youmu_width = 131
youmu_height = `perl -e 'print int($(youmu_width)*0.5*1162/910)'`
yuyuko_width = 162
yuyuko_height = `perl -e 'print int($(yuyuko_width)*0.5*1111/965)'`

all: youmu.txt yuyuko.txt
	wc youmu.txt yuyuko.txt

youmu.txt: youmu15.jpg Makefile
	perl anytotxt.pl $< $(youmu_width) $(youmu_height) | perl trim_space.pl > $@
	perl freq.pl $@

yuyuko.txt: yuyuko15.jpg Makefile
	perl anytotxt.pl $< $(yuyuko_width) $(yuyuko_height) | perl trim_space.pl > $@
	perl freq.pl $@

clean:
	-rm -f youmu.txt yuyuko.txt

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