Shingo@4: TARGET = main Shingo@4: SRCTEX = $(TARGET).tex file1.tex file2.tex Shingo@4: SRCFIG = fig/fig_file1.ppt fig/fig_file2.ppt Shingo@4: SRCMISC = Shingo@4: SRCFIG_DIGEST = $(SRCFIG:.ppt=.md5) Shingo@4: Shingo@4: PRN2EPS = c:/cygwin/home/swk/lib/tex/prn2eps.pl Shingo@4: PPTPRINT = c:/cygwin/home/swk/lib/tex/ppt_printout_ps.vbs Shingo@4: Shingo@4: dvi: $(TARGET).dvi Shingo@4: pdf: $(TARGET).pdf Shingo@4: Shingo@4: # $(TARGET).pdf: $(TARGET).dvi Shingo@4: # dvipsk -Pdl $(TARGET).dvi Shingo@4: # -pdfclose --file $(TARGET).pdf Shingo@4: # cygstart $(TARGET).ps Shingo@4: # @while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done Shingo@4: # rm $(TARGET).ps Shingo@4: Shingo@4: $(TARGET).pdf: $(TARGET).dvi Shingo@4: -pdfclose --file $(TARGET).pdf Shingo@4: dvipdfmx $(TARGET) Shingo@4: pdfopen --file $(TARGET).pdf --back Shingo@4: Shingo@4: $(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST) Shingo@4: platex $(TARGET) Shingo@4: # jbibtex $(TARGET) Shingo@4: # platex $(TARGET) Shingo@4: platex $(TARGET) Shingo@4: grep Warning $(TARGET).log Shingo@4: Shingo@4: %.md5: %.prn Shingo@4: $(PRN2EPS) $< Shingo@4: Shingo@4: %.prn: %.ppt Shingo@4: wscript $(PPTPRINT) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt