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)