Mercurial > hg > Papers > 2008 > fuchita-master
view handout/Makefile @ 12:d0afeaf4d60c
Chapter 5
author | fuchita |
---|---|
date | Fri, 15 Feb 2008 20:58:55 +0900 |
parents | 420c2d37b2bf |
children |
line wrap: on
line source
MAKE=make -f Makefile LATEX=platex BIBTEX=jbibtex DVIPS=dvips DVIPDFM=dvipdfm MAIN_TARGET=handout PS_SUFFIX=.ps PDF_SUFFIX=.pdf .SUFFIXES: .tex .dvi dvi: @echo "========== MAKE DVI file ($(MAIN_TARGET).dvi) ==========" $(LATEX) $(MAIN_TARGET) bib: dvi @echo "========== MAKE Bib file ($(MAIN_TARGET).dvi) ==========" $(BIBTEX) $(MAIN_TARGET) final: dvi @echo "========== PUBLISHING ==========" @echo "\t first..." $(LATEX) $(MAIN_TARGET) > /dev/null @echo "\t second..." $(LATEX) $(MAIN_TARGET) > /dev/null ps: final @echo "========== GENERATE PostScript (PS) ==========" $(DVIPS) $(MAIN_TARGET) pdf: final @echo "========== GENERATE PDF file ==========" # out2uni $(MAIN_TARGET) $(LATEX) $(MAIN_TARGET) > /dev/null $(DVIPDFM) $(MAIN_TARGET) clean: @echo "remove $(MAIN_TARGET)*{aux,log,toc,lof,lot,blg,bbl,ilg,dvi,ps,pdf,out}" @if [ -f $(MAIN_TARGET).aux ];\ then $(RM) $(MAIN_TARGET).aux;\ fi @if [ -f $(MAIN_TARGET).log ];\ then $(RM) $(MAIN_TARGET).log;\ fi @if [ -f $(MAIN_TARGET).toc ];\ then $(RM) $(MAIN_TARGET).toc;\ fi @if [ -f $(MAIN_TARGET).lof ];\ then $(RM) $(MAIN_TARGET).lof;\ fi @if [ -f $(MAIN_TARGET).lot ];\ then $(RM) $(MAIN_TARGET).lot;\ fi @if [ -f $(MAIN_TARGET).blg ];\ then $(RM) $(MAIN_TARGET).blg;\ fi @if [ -f $(MAIN_TARGET).bbl ];\ then $(RM) $(MAIN_TARGET).bbl;\ fi @if [ -f $(MAIN_TARGET).ilg ];\ then $(RM) $(MAIN_TARGET).ilg;\ fi @if [ -f $(MAIN_TARGET).dvi ];\ then $(RM) $(MAIN_TARGET).dvi;\ fi @if [ -f $(MAIN_TARGET).ps ];\ then $(RM) $(MAIN_TARGET).ps;\ fi @if [ -f $(MAIN_TARGET).pdf ];\ then $(RM) $(MAIN_TARGET).pdf;\ fi @if [ -f $(MAIN_TARGET).out ];\ then $(RM) $(MAIN_TARGET).out;\ fi veryclean: clean find ./ -name \*~ -exec rm -f {} \;