tex/Makefile.sample
changeset 4 8b90d57759c9
child 5 105778ace30a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tex/Makefile.sample	Mon Sep 13 03:54:21 2010 +0900
     1.3 @@ -0,0 +1,36 @@
     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 +
    1.13 +dvi: $(TARGET).dvi
    1.14 +pdf: $(TARGET).pdf
    1.15 +
    1.16 +# $(TARGET).pdf: $(TARGET).dvi
    1.17 +#	dvipsk -Pdl $(TARGET).dvi
    1.18 +#	-pdfclose --file $(TARGET).pdf
    1.19 +#	cygstart $(TARGET).ps
    1.20 +#	@while test ! -e $(TARGET).pdf; do echo -n .; sleep 2; done
    1.21 +#	rm $(TARGET).ps
    1.22 +
    1.23 +$(TARGET).pdf: $(TARGET).dvi
    1.24 +	-pdfclose --file $(TARGET).pdf
    1.25 +	dvipdfmx $(TARGET)
    1.26 +	pdfopen --file $(TARGET).pdf --back
    1.27 +
    1.28 +$(TARGET).dvi: $(SRCTEX) $(SRCMISC) $(SRCFIG_DIGEST)
    1.29 +	platex $(TARGET)
    1.30 +#	jbibtex $(TARGET)
    1.31 +#	platex $(TARGET)
    1.32 +	platex $(TARGET)
    1.33 +	grep Warning $(TARGET).log
    1.34 +
    1.35 +%.md5: %.prn
    1.36 +	$(PRN2EPS) $<
    1.37 +
    1.38 +%.prn: %.ppt
    1.39 +	wscript $(PPTPRINT) `cygpath -wa $<` `cygpath -wa $*.prn` > $*.note.txt