summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/include/latex.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include/latex.mk')
-rw-r--r--Master/texmf-dist/doc/latex/disser/include/latex.mk101
1 files changed, 101 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.mk b/Master/texmf-dist/doc/latex/disser/include/latex.mk
new file mode 100644
index 00000000000..1546c18f332
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/disser/include/latex.mk
@@ -0,0 +1,101 @@
+#
+# Makefile for LaTeX projects
+# Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com>
+#
+
+TARGET=thesis
+
+ARCH=7z
+BIBTEX=bibtex8
+DVIPS=dvips
+FIND=/bin/find
+L2H=latex2html
+PDFTEX=pdflatex
+PS2PDF=gs
+PSNUP=psnup
+TEX=latex
+
+ARCHEXT=zip
+ARCHFLAGS=a -t$(ARCHEXT)
+ARCHIVE=$(TARGET).$(ARCHEXT)
+BIBTEXFLAGS=-H -c cp1251
+
+L2HFLAGS=-dir html -iso_language RU.RU -split 3 -short_index \
+ -numbered_footnotes -no_footnode -white -antialias -html_version 4.0
+PS2PDFFLAGS=-dBATCH -dNOPAUSE -sDEVICE=pdfwrite -g4960x7016 -r600 \
+ -dCompatibilityLevel=1.2 -sOutputFile=$(TARGET)_2on1.pdf -c save pop \
+ -f $(TARGET)_2on1.ps
+PSNUPFLAGS=-2 -pA4
+TEXFLAGS=-src-specials
+
+CLEXT=*.aux *.toc *.idx *.ind *.ilg *.log *.out *.lof *.lot *.lol \
+ *.bbl *.blg *.bak *.dvi *.ps *.pdf
+CLFILES=$(CLEXT) $(ARCHIVE)
+SRCFILES=*
+
+# end of configuration
+
+dvi: $(TARGET).dvi
+
+pdf: $(TARGET).pdf
+
+pdf_2on1: $(TARGET)_2on1.pdf
+
+ps: $(TARGET).ps
+
+ps_2on1: $(TARGET)_2on1.ps
+
+html: $(TARGET).dvi
+ @$(L2H) $(L2HFLAGS) $(TARGET).tex
+
+$(TARGET).dvi: $(TARGET).tex
+ @$(TEX) $(TEXFLAGS) $^
+ @$(BIBTEX) $(BIBTEXFLAGS) $(TARGET) ;\
+ @$(TEX) $(TEXFLAGS) $^
+ @$(TEX) $(TEXFLAGS) $^
+
+$(TARGET).ps: $(TARGET).dvi
+ @$(DVIPS) -o $@ $^
+
+$(TARGET)_2on1.ps: $(TARGET).ps
+ @$(PSNUP) $(PSNUPFLAGS) $^ > $@
+
+$(TARGET).pdf: $(TARGET).tex
+ @$(MAKE) -C fig epstopdf
+ @$(PDFTEX) $^
+ @$(BIBTEX) $(BIBTEXFLAGS) $(TARGET)
+ @$(PDFTEX) $^
+ @$(PDFTEX) $^
+
+$(TARGET)_2on1.pdf: $(TARGET)_2on1.ps
+ @$(PS2PDF) $^ $@
+
+epstopdf:
+ @$(MAKE) -C fig $@
+
+fixbb:
+ @$(MAKE) -C fig $@
+
+srcdist:
+ @$(MAKE) clean
+ @$(ARCH) $(ARCHFLAGS) $(ARCHIVE) $(SRCFILES)
+
+clean:
+ rm -f $(CLFILES)
+ rm -f html/*.*
+ @$(MAKE) -C fig $@
+
+help:
+ @echo "Targets:"
+ @echo " dvi - (default) build DVI"
+ @echo " clean - remove ouptut files"
+ @echo " epstopdf - convert all figures to PDF"
+ @echo " fixbb - fix BoundingBox"
+ @echo " help - show help"
+ @echo " html - build HTML"
+ @echo " pdf - build PDF"
+ @echo " pdf_2on1 - build PDF with 2 pages on one landscape-oriented A4"
+ @echo " ps - build PS"
+ @echo " ps_2on1 - build PS with 2 pages on one landscape-oriented A4"
+ @echo " srcdist - build source distribution $(ARCHIVE)"
+