author | Shingo W. Kagami |
Mon, 13 Sep 2010 03:54:21 +0900 | |
changeset 4 | 8b90d57759c9 |
child 5 | 105778ace30a |
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@4 | 9 |
|
Shingo@4 | 10 |
dvi: $(TARGET).dvi |
Shingo@4 | 11 |
pdf: $(TARGET).pdf |
Shingo@4 | 12 |
|
Shingo@4 | 13 |
# $(TARGET).pdf: $(TARGET).dvi |
Shingo@4 | 14 |
# dvipsk -Pdl $(TARGET).dvi |
Shingo@4 | 15 |
# -pdfclose --file $(TARGET).pdf |
Shingo@4 | 16 |
# cygstart $(TARGET).ps |
Shingo@4 | 17 |
# @while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done |
Shingo@4 | 18 |
# rm $(TARGET).ps |
Shingo@4 | 19 |
|
Shingo@4 | 20 |
$(TARGET).pdf: $(TARGET).dvi |
Shingo@4 | 21 |
-pdfclose --file $(TARGET).pdf |
Shingo@4 | 22 |
dvipdfmx $(TARGET) |
Shingo@4 | 23 |
pdfopen --file $(TARGET).pdf --back |
Shingo@4 | 24 |
|
Shingo@4 | 25 |
$(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST) |
Shingo@4 | 26 |
platex $(TARGET) |
Shingo@4 | 27 |
# jbibtex $(TARGET) |
Shingo@4 | 28 |
# platex $(TARGET) |
Shingo@4 | 29 |
platex $(TARGET) |
Shingo@4 | 30 |
grep Warning $(TARGET).log |
Shingo@4 | 31 |
|
Shingo@4 | 32 |
%.md5: %.prn |
Shingo@4 | 33 |
$(PRN2EPS) $< |
Shingo@4 | 34 |
|
Shingo@4 | 35 |
%.prn: %.ppt |
Shingo@4 | 36 |
wscript $(PPTPRINT) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt |