diff -r cce8365a9d50 -r 8b90d57759c9 tex/Makefile.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tex/Makefile.sample Mon Sep 13 03:54:21 2010 +0900 @@ -0,0 +1,36 @@ +TARGET = main +SRCTEX = $(TARGET).tex file1.tex file2.tex +SRCFIG = fig/fig_file1.ppt fig/fig_file2.ppt +SRCMISC = +SRCFIG_DIGEST = $(SRCFIG:.ppt=.md5) + +PRN2EPS = c:/cygwin/home/swk/lib/tex/prn2eps.pl +PPTPRINT = c:/cygwin/home/swk/lib/tex/ppt_printout_ps.vbs + +dvi: $(TARGET).dvi +pdf: $(TARGET).pdf + +# $(TARGET).pdf: $(TARGET).dvi +# dvipsk -Pdl $(TARGET).dvi +# -pdfclose --file $(TARGET).pdf +# cygstart $(TARGET).ps +# @while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done +# rm $(TARGET).ps + +$(TARGET).pdf: $(TARGET).dvi + -pdfclose --file $(TARGET).pdf + dvipdfmx $(TARGET) + pdfopen --file $(TARGET).pdf --back + +$(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST) + platex $(TARGET) +# jbibtex $(TARGET) +# platex $(TARGET) + platex $(TARGET) + grep Warning $(TARGET).log + +%.md5: %.prn + $(PRN2EPS) $< + +%.prn: %.ppt + wscript $(PPTPRINT) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt