.SUFFIXES : .html

all:
	@echo
	@echo "make index"
	@echo "make perlhtml"
	@echo "make clean"
	@echo

index: index.html
	perl generate_table.pl table.txt template_$< | \
		perl ts.pl | nkf -j > $<

txthtml: template_index.html
	nkf -j $< > $<.txt

perlhtml: index txthtml
	for f in *.pl; \
	do \
		perl -i ts.pl $$f; \
	done
	cd html && ${MAKE}

clean:
	trash
