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