1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Makefile.sample Sun Sep 19 13:16:17 2010 +0900
1.3 @@ -0,0 +1,38 @@
1.4 +TARGET = main
1.5 +SRCTEX = $(TARGET).tex file1.tex file2.tex
1.6 +SRCFIG = fig/fig_file1.ppt fig/fig_file2.ppt
1.7 +SRCMISC =
1.8 +SRCFIG_DIGEST = $(SRCFIG:.ppt=.md5)
1.9 +
1.10 +PRN2EPS = c:/cygwin/home/swk/lib/tex/prn2eps.pl
1.11 +PPTPRINT = c:/cygwin/home/swk/lib/tex/ppt_printout_ps.vbs
1.12 +PRINTER = "Generic PostScript Writer"
1.13 +
1.14 +dvi: $(TARGET).dvi
1.15 +pdf: $(TARGET).pdf
1.16 +
1.17 +#$(TARGET).pdf: $(TARGET).dvi
1.18 +# dvipsk -Pdl $(TARGET).dvi
1.19 +# -pdfclose --file $(TARGET).pdf
1.20 +# cygstart $(TARGET).ps
1.21 +# @while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done
1.22 +# rm $(TARGET).ps
1.23 +# pdfopen --file $(TARGET).pdf --back
1.24 +
1.25 +$(TARGET).pdf: $(TARGET).dvi
1.26 + -pdfclose --file $(TARGET).pdf
1.27 + dvipdfmx $(TARGET)
1.28 + pdfopen --file $(TARGET).pdf --back
1.29 +
1.30 +$(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST)
1.31 + platex $(TARGET)
1.32 +# jbibtex $(TARGET)
1.33 +# platex $(TARGET)
1.34 + platex $(TARGET)
1.35 + -grep Warning $(TARGET).log
1.36 +
1.37 +%.md5: %.prn
1.38 + $(PRN2EPS) $<
1.39 +
1.40 +%.prn: %.ppt
1.41 + wscript $(PPTPRINT) $(PRINTER) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt