view Makefile @ 1:456565b8c828

*** empty log message ***
author kent
date Sun, 15 Jun 2008 10:43:59 +0900
parents f2fa5b673868
children 448fb638bfa0
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)