all: dvi pdf clean

dvi:
	platex thesis.tex
	platex thesis.tex
	mv thesis.dvi THESIS.dvi

pdf:
	dvipdfmx THESIS.dvi

tar: clean.all dvi pdf clean
	cd ../ ; \
	tar cvfz thesis_sample.tar.gz thesis_sample \
		--exclude SIGEN.htm --exclude SIGEN_PUB.htm
	mv ../thesis_sample.tar.gz ./

clean:
	-rm thesis.aux thesis.lof thesis.log thesis.toc

clean.all:
	-rm THESIS.dvi THESIS.pdf thesis_sample.tar.gz