#
#Makefile for LaTeX
#
#This Makefile is made for LaTeX compiling.
#If you need to change, please compile this file by your self.
#
#
#You can use this file for .tex file which is in the same directory with Makefile.
#This make file works under these following commands:
#
# Make pdf from .tex file
#
#	make pdf
# 
# Delete files that .bak , .old , .aux , .dvi , .log.
#	 
#	make clean
#

# Define .tex file as "TEX"
TEX = *.tex

# Define .bak , .old , .aux , .dvi and ,log files as "OBJECT". 
OBJECTS = *.bak \
	  *.old	\
	  *.aux \
	  *.dvi \
	  *.log 

# Devine .dvi file as "DVI".
DVI = *.dvi

#If ".tex" file changed, do pLaTeX compiling with option 'pdf'.
pdf: ${TEX}
	platex ${TEX}
	platex ${TEX}
	platex ${TEX}
	dvipdfmx ${DVI}

# Delete "OBJECTS" file with option 'clean'
clean: 
	rm -rf ${OBJECTS}	
