diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/disser/Makefile | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/disser/Makefile b/Master/texmf-dist/source/latex/disser/Makefile index db02f71b551..696a2f32438 100644 --- a/Master/texmf-dist/source/latex/disser/Makefile +++ b/Master/texmf-dist/source/latex/disser/Makefile @@ -3,23 +3,27 @@ # Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> # -TARGET?=disser +TARGET=disser SUBCLASS=gost732 BST=disser-bst +MANUAL?=manual + +CLSFILES=$(TARGET).cls *.rtx $(SUBCLASS).cls +BSTFILE=$(TARGET).bst +DOCFILES=$(TARGET).pdf $(SUBCLASS).pdf $(MANUAL).pdf ../README ../README.ru ../ChangeLog +BSTDOCFILE=$(BST).pdf +SRCFILES=*.dtx *.ins $(MANUAL).tex TEXMF?=/usr/share/texmf + CLSDIR?=$(TEXMF)/tex/latex/$(TARGET) DOCDIR?=$(TEXMF)/doc/latex/$(TARGET) BSTDIR?=$(TEXMF)/bibtex/bst/$(TARGET) BSTDOCDIR?=$(TEXMF)/doc/bibtex/$(TARGET) - -CLSFILES?=$(TARGET).cls *.rtx $(SUBCLASS).cls -BSTFILES?=$(TARGET).bst -DOCFILES?=$(TARGET).dvi $(SUBCLASS).dvi $(TARGET).pdf $(SUBCLASS).pdf -BSTDOCFILES?=$(BST).dvi $(BST).pdf +SRCDIR?=$(TEXMF)/source/latex/$(TARGET) CLEXT?= *.log *.out *.aux *.dvi *.idx *.ilg *.ind *.glo *.toc *.bak *.bbl *.blg *.sav -CLFILES?=$(CLSFILES) $(BSTFILES) $(DOCFILES) $(BSTDOCFILES) $(CLEXT) +CLFILES?=$(CLSFILES) $(BSTFILE) $(DOCFILES) $(BSTDOCFILE) $(CLEXT) LATEX?=latex PDFLATEX?=pdflatex @@ -32,21 +36,23 @@ all: class doc class: *.cls -doc: dvi pdf +doc: pdf -dvi: $(TARGET).dvi $(SUBCLASS).dvi $(BST).dvi +dvi: $(TARGET).dvi $(SUBCLASS).dvi $(BST).dvi $(MANUAL).dvi -pdf: $(TARGET).pdf $(SUBCLASS).pdf $(BST).pdf +pdf: $(TARGET).pdf $(SUBCLASS).pdf $(BST).pdf $(MANUAL).pdf install: all mkdir -p $(CLSDIR) mkdir -p $(BSTDIR) mkdir -p $(DOCDIR) - mkdir -p $(BSTDOCDIR) + mkdir -p $(SRCDIR) cp $(CLSFILES) $(CLSDIR) - cp $(BSTFILES) $(BSTDIR) + cp $(BSTFILE) $(BSTDIR) cp $(DOCFILES) $(DOCDIR) - cp $(BSTDOCFILES) $(BSTDOCDIR) + cp $(BSTDOCFILE) $(DOCDIR) + cp $(SRCFILES) $(SRCDIR) + @echo -e "\nDon't forget to run 'mktexlsr' if you install this class first time\n" clean: rm -f $(CLFILES) @@ -60,14 +66,22 @@ clean: $(LATEX) $(LATEXFLAGS) $< $(LATEX) $(LATEXFLAGS) $< +%.dvi: %.tex + $(LATEX) $(LATEXFLAGS) $< + $(MI) -r $(TARGET) + $(LATEX) $(LATEXFLAGS) $< + $(LATEX) $(LATEXFLAGS) $< + %.pdf: %.dtx $(PDFLATEX) $(PDFLATEXFLAGS) $< - $(MI) -r $(TARGET) + $(PDFLATEX) $(PDFLATEXFLAGS) $< + +%.pdf: %.tex $(PDFLATEX) $(PDFLATEXFLAGS) $< $(PDFLATEX) $(PDFLATEXFLAGS) $< help: - @echo "List of targets:" + @echo "Targets:" @echo " all (default) build classes and documentation" @echo " class build classes" @echo " clean remove ouptut files" |