view Makefile @ 6:bfb290984b07

create slide.tex
author kent
date Mon, 21 Apr 2008 21:24:07 +0900
parents 2c619ec34ae4
children 0cca1c3a062d
line wrap: on
line source

DVIPDF = dvipdfmx
DVIPDF_OPT = -f ptex-hiragino.map -f otf-hiragino.map
LATEX  = platex
PS2PDF = ps2pdf14
DVIPS  = dvips
BKMK2UNI = ~/src/bkmk2uni

TARGET1 = main
#TARGET2 = resume
#TARGET3 = resume2
SLIDE1 = slide

PDFs = $(TARGET1).pdf
DVIs = $(TARGET1).dvi
TEXs = $(TARGET1).tex

.SUFFIXES: .tex .dvi .pdf

all: $(PDFs)

.dvi.pdf:
	$(DVIPDF) $(DVIPDF_OPT) $^
.tex.dvi:
	$(LATEX) $^

$(SLIDE1).pdf: $(SLIDE1).ps
	$(PS2PDF) $^

$(SLIDE1).ps: $(SLIDE1).dvi
	$(DVIPS) $^
	if [ -x $(BKMK2UNI) ]; then\
	  mv $@ $@.tmp;\
	  $(BKMK2UNI) -e < $@.tmp > $@;\
	fi

clean:
	rm -f *.{aux,log,nav,out,snm}

distclean: clean
	rm -f $(DVIs) $(PDFs) *.{dvi}


twice: distclean $(DVIs) .rmdvi $(PDFs)
.rmdvi:
	rm -f $(DVIs)