tex/Makefile.sample
changeset 4 8b90d57759c9
child 5 105778ace30a
equal deleted inserted replaced
-1:000000000000 0:4922c1f0e95c
       
     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 
       
    10 dvi: $(TARGET).dvi
       
    11 pdf: $(TARGET).pdf
       
    12 
       
    13 # $(TARGET).pdf: $(TARGET).dvi
       
    14 #	dvipsk -Pdl $(TARGET).dvi
       
    15 #	-pdfclose --file $(TARGET).pdf
       
    16 #	cygstart $(TARGET).ps
       
    17 #	@while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done
       
    18 #	rm $(TARGET).ps
       
    19 
       
    20 $(TARGET).pdf: $(TARGET).dvi
       
    21 	-pdfclose --file $(TARGET).pdf
       
    22 	dvipdfmx $(TARGET)
       
    23 	pdfopen --file $(TARGET).pdf --back
       
    24 
       
    25 $(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST)
       
    26 	platex $(TARGET)
       
    27 #	jbibtex $(TARGET)
       
    28 #	platex $(TARGET)
       
    29 	platex $(TARGET)
       
    30 	grep Warning $(TARGET).log
       
    31 
       
    32 %.md5: %.prn
       
    33 	$(PRN2EPS) $<
       
    34 
       
    35 %.prn: %.ppt
       
    36 	wscript $(PPTPRINT) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt