diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/disser/Makefile | 122 |
1 files changed, 63 insertions, 59 deletions
diff --git a/Master/texmf-dist/source/latex/disser/Makefile b/Master/texmf-dist/source/latex/disser/Makefile index 5fb3559a31a..fdc9261dd9a 100644 --- a/Master/texmf-dist/source/latex/disser/Makefile +++ b/Master/texmf-dist/source/latex/disser/Makefile @@ -1,86 +1,90 @@ # # Makefile for disser package # Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com> -# +# -TARGET=disser -SUBCLASS=gost732 -BST=disser-bst -MANUAL=manual +TARGET := disser +MAINDTX := disser gost732 gost705 +MANUAL := manual -CLSFILES=$(TARGET).cls *.rtx $(SUBCLASS).cls -BSTFILES=$(TARGET).bst $(TARGET)-s.bst -DOCFILES=$(TARGET).pdf $(SUBCLASS).pdf $(BST).pdf $(MANUAL).pdf -TEXTFILES=../README ../README.ru ../ChangeLog -SRCFILES=*.dtx *.ins $(MANUAL).tex +CLSFILES := *.cls *.rtx +BSTFILES := gost705.bst gost705s.bst +DOCFILES := $(addsuffix .pdf, $(MAINDTX) $(MANUAL)) +TEXTFILES := ../README ../README.ru ../ChangeLog +SRCFILES := *.dtx $(TARGET).ins $(TARGET).ist $(MANUAL).tex Makefile nomake.cmd -TEXMF?=/usr/share/texmf +TEXMF ?= /usr/share/texmf +DESTDIR ?= $(TEXMF) +CLSDIR ?= $(DESTDIR)/tex/latex/$(TARGET) +DOCDIR ?= $(DESTDIR)/doc/latex/$(TARGET) +BSTDIR ?= $(DESTDIR)/bibtex/bst/$(TARGET) +SRCDIR ?= $(DESTDIR)/source/latex/$(TARGET) -CLSDIR?=$(TEXMF)/tex/latex/$(TARGET) -DOCDIR?=$(TEXMF)/doc/latex/$(TARGET) -BSTDIR?=$(TEXMF)/bibtex/bst/$(TARGET) -SRCDIR?=$(TEXMF)/source/latex/$(TARGET) +CLEXT ?= *.aux *.toc *.idx *.ind *.ilg *.log *.out *.lof *.lot *.lol \ + *.bbl *.blg *.bak *.dvi *.ps *.pdf +CLFILES ?= $(CLEXT) $(CLSFILES) $(BSTFILES) -CLEXT?=*.log *.out *.aux *.dvi *.idx *.ilg *.ind *.glo *.toc *.bak *.bbl *.blg *.sav -CLFILES?=$(CLSFILES) $(BSTFILE) $(DOCFILES) $(CLEXT) +LATEX ?= latex +PDFLATEX ?= pdflatex +MI ?= makeindex -LATEX?=latex -PDFLATEX?=pdflatex -MI?=makeindex +LATEXFLAGS ?= --src-specials +PDFLATEXFLAGS ?= --shell-escape +MIFLAGS ?= -r -s disser.ist -LATEXFLAGS?= -PDFLATEXFLAGS?= all: package doc -package: $(TARGET).ins - $(LATEX) $^ +package: $(TARGET).cls doc: pdf -dvi: $(TARGET).dvi $(SUBCLASS).dvi $(BST).dvi $(MANUAL).dvi +dvi: $(addsuffix .dvi, $(MAINDTX) $(MANUAL)) -pdf: $(TARGET).pdf $(SUBCLASS).pdf $(BST).pdf $(MANUAL).pdf +pdf: $(DOCFILES) + +clean: + -rm -f $(CLFILES) install: all - mkdir -p $(CLSDIR) - mkdir -p $(BSTDIR) - mkdir -p $(DOCDIR) - mkdir -p $(SRCDIR) - cp $(CLSFILES) $(CLSDIR) - cp $(BSTFILES) $(BSTDIR) - cp $(DOCFILES) $(DOCDIR) - cp $(TEXTFILES) $(DOCDIR) + mkdir -p $(CLSDIR) ;\ + mkdir -p $(BSTDIR) ;\ + mkdir -p $(DOCDIR) ;\ + mkdir -p $(SRCDIR) ;\ + cp $(CLSFILES) $(CLSDIR) ;\ + cp $(BSTFILES) $(BSTDIR) ;\ + cp $(DOCFILES) $(DOCDIR) ;\ + cp $(TEXTFILES) $(DOCDIR) ;\ cp $(SRCFILES) $(SRCDIR) uninstall: - rm $(addprefix $(CLSDIR)/, $(CLSFILES)) - rm $(addprefix $(BSTDIR)/, $(BSTFILES)) - rm $(addprefix $(DOCDIR)/, $(DOCFILES)) - rm $(addprefix $(DOCDIR)/, $(notdir $(TEXTFILES))) - rm $(addprefix $(SRCDIR)/, $(SRCFILES)) - rmdir $(CLSDIR) - rmdir $(BSTDIR) - rmdir $(DOCDIR) - rmdir $(SRCDIR) + -rm $(addprefix $(CLSDIR)/, $(CLSFILES)) + -rm $(addprefix $(BSTDIR)/, $(BSTFILES)) + -rm $(addprefix $(DOCDIR)/, $(DOCFILES)) + -rm $(addprefix $(DOCDIR)/, $(notdir $(TEXTFILES))) + -rm $(addprefix $(SRCDIR)/, $(SRCFILES)) + -rmdir $(CLSDIR) + -rmdir $(BSTDIR) + -rmdir $(DOCDIR) + -rmdir $(SRCDIR) reinstall: uninstall install -clean: - rm -f $(CLFILES) - -disser.dvi: disser.dtx +$(TARGET).dvi: $(TARGET).dtx $(LATEX) $(LATEXFLAGS) $< $(MI) -r $(TARGET) $(LATEX) $(LATEXFLAGS) $< $(LATEX) $(LATEXFLAGS) $< -disser.pdf: disser.dtx +$(TARGET).pdf: $(TARGET).dtx $(PDFLATEX) $(PDFLATEXFLAGS) $< - $(MI) -r $(TARGET) + $(MI) $(MIFLAGS) $(TARGET) $(PDFLATEX) $(PDFLATEXFLAGS) $< $(PDFLATEX) $(PDFLATEXFLAGS) $< +%.cls: %.ins + $(LATEX) $^ + %.dvi: %.dtx $(LATEX) $(LATEXFLAGS) $< $(LATEX) $(LATEXFLAGS) $< @@ -98,13 +102,13 @@ disser.pdf: disser.dtx $(PDFLATEX) $(PDFLATEXFLAGS) $< help: - @echo " all (default) build package files and documentation" - @echo " package build package" - @echo " clean remove output files" - @echo " doc build DVI and PDF versions of documentation" - @echo " dvi build DVI version of documentation" - @echo " help show description of targets" - @echo " install install package and documentation" - @echo " pdf build PDF version of documentation" - @echo " reinstall reinstall package and documentation" - @echo " uninstall uninstall package and documentation" + @echo " all (default) build package and documentation" ;\ + echo " clean remove output files" ;\ + echo " doc alias for pdf target" ;\ + echo " dvi build documentation in DVI format" ;\ + echo " help show description of targets" ;\ + echo " install install package and documentation" ;\ + echo " package build package" ;\ + echo " pdf build documentation in PDF format" ;\ + echo " reinstall reinstall package and documentation" ;\ + echo " uninstall uninstall package and documentation" |