author | Shingo W. Kagami |
Sun, 19 Sep 2010 05:55:48 +0900 | |
changeset 5 | 105778ace30a |
parent 4 | 8b90d57759c9 |
permissions | -rw-r--r-- |
Shingo@4 | 1 |
TARGET = main |
Shingo@4 | 2 |
SRCTEX = $(TARGET).tex file1.tex file2.tex |
Shingo@4 | 3 |
SRCFIG = fig/fig_file1.ppt fig/fig_file2.ppt |
Shingo@4 | 4 |
SRCMISC = |
Shingo@4 | 5 |
SRCFIG_DIGEST = $(SRCFIG:.ppt=.md5) |
Shingo@4 | 6 |
|
Shingo@4 | 7 |
PRN2EPS = c:/cygwin/home/swk/lib/tex/prn2eps.pl |
Shingo@4 | 8 |
PPTPRINT = c:/cygwin/home/swk/lib/tex/ppt_printout_ps.vbs |
Shingo@5 | 9 |
PRINTER = "Generic PostScript Writer" |
Shingo@4 | 10 |
|
Shingo@4 | 11 |
dvi: $(TARGET).dvi |
Shingo@4 | 12 |
pdf: $(TARGET).pdf |
Shingo@4 | 13 |
|
Shingo@5 | 14 |
#$(TARGET).pdf: $(TARGET).dvi |
Shingo@4 | 15 |
# dvipsk -Pdl $(TARGET).dvi |
Shingo@4 | 16 |
# -pdfclose --file $(TARGET).pdf |
Shingo@4 | 17 |
# cygstart $(TARGET).ps |
Shingo@4 | 18 |
# @while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done |
Shingo@4 | 19 |
# rm $(TARGET).ps |
Shingo@5 | 20 |
# pdfopen --file $(TARGET).pdf --back |
Shingo@4 | 21 |
|
Shingo@4 | 22 |
$(TARGET).pdf: $(TARGET).dvi |
Shingo@4 | 23 |
-pdfclose --file $(TARGET).pdf |
Shingo@4 | 24 |
dvipdfmx $(TARGET) |
Shingo@4 | 25 |
pdfopen --file $(TARGET).pdf --back |
Shingo@4 | 26 |
|
Shingo@4 | 27 |
$(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST) |
Shingo@4 | 28 |
platex $(TARGET) |
Shingo@4 | 29 |
# jbibtex $(TARGET) |
Shingo@4 | 30 |
# platex $(TARGET) |
Shingo@4 | 31 |
platex $(TARGET) |
Shingo@5 | 32 |
-grep Warning $(TARGET).log |
Shingo@4 | 33 |
|
Shingo@4 | 34 |
%.md5: %.prn |
Shingo@4 | 35 |
$(PRN2EPS) $< |
Shingo@4 | 36 |
|
Shingo@4 | 37 |
%.prn: %.ppt |
Shingo@5 | 38 |
wscript $(PPTPRINT) $(PRINTER) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt |