summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-24 16:35:13 +0000
committerKarl Berry <karl@freefriends.org>2009-06-24 16:35:13 +0000
commitd73a503687f31a927aea191ec9ed3cf1c950fd8f (patch)
tree7dc5b70b51a539ac785341bad4387d836bb371c2 /Master/texmf-dist/source/latex/disser/Makefile
parent3c2360d0385b88c9a20bd20ac33c71d9cec07294 (diff)
disser update (23jun09)
git-svn-id: svn://tug.org/texlive/trunk@13941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/disser/Makefile81
1 files changed, 49 insertions, 32 deletions
diff --git a/Master/texmf-dist/source/latex/disser/Makefile b/Master/texmf-dist/source/latex/disser/Makefile
index 696a2f32438..5fb3559a31a 100644
--- a/Master/texmf-dist/source/latex/disser/Makefile
+++ b/Master/texmf-dist/source/latex/disser/Makefile
@@ -1,17 +1,17 @@
#
-# Makefile for LaTeX packages
+# Makefile for disser package
# Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com>
#
TARGET=disser
SUBCLASS=gost732
BST=disser-bst
-MANUAL?=manual
+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
+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
TEXMF?=/usr/share/texmf
@@ -19,11 +19,10 @@ TEXMF?=/usr/share/texmf
CLSDIR?=$(TEXMF)/tex/latex/$(TARGET)
DOCDIR?=$(TEXMF)/doc/latex/$(TARGET)
BSTDIR?=$(TEXMF)/bibtex/bst/$(TARGET)
-BSTDOCDIR?=$(TEXMF)/doc/bibtex/$(TARGET)
SRCDIR?=$(TEXMF)/source/latex/$(TARGET)
-CLEXT?= *.log *.out *.aux *.dvi *.idx *.ilg *.ind *.glo *.toc *.bak *.bbl *.blg *.sav
-CLFILES?=$(CLSFILES) $(BSTFILE) $(DOCFILES) $(BSTDOCFILE) $(CLEXT)
+CLEXT?=*.log *.out *.aux *.dvi *.idx *.ilg *.ind *.glo *.toc *.bak *.bbl *.blg *.sav
+CLFILES?=$(CLSFILES) $(BSTFILE) $(DOCFILES) $(CLEXT)
LATEX?=latex
PDFLATEX?=pdflatex
@@ -32,9 +31,10 @@ MI?=makeindex
LATEXFLAGS?=
PDFLATEXFLAGS?=
-all: class doc
+all: package doc
-class: *.cls
+package: $(TARGET).ins
+ $(LATEX) $^
doc: pdf
@@ -47,28 +47,45 @@ install: all
mkdir -p $(BSTDIR)
mkdir -p $(DOCDIR)
mkdir -p $(SRCDIR)
- cp $(CLSFILES) $(CLSDIR)
- cp $(BSTFILE) $(BSTDIR)
- cp $(DOCFILES) $(DOCDIR)
- cp $(BSTDOCFILE) $(DOCDIR)
- cp $(SRCFILES) $(SRCDIR)
- @echo -e "\nDon't forget to run 'mktexlsr' if you install this class first time\n"
+ 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)
+
+reinstall: uninstall install
clean:
rm -f $(CLFILES)
-%.cls: %.ins
- $(TEX) $<
-
-%.dvi: %.dtx
+disser.dvi: disser.dtx
$(LATEX) $(LATEXFLAGS) $<
$(MI) -r $(TARGET)
$(LATEX) $(LATEXFLAGS) $<
$(LATEX) $(LATEXFLAGS) $<
-%.dvi: %.tex
- $(LATEX) $(LATEXFLAGS) $<
+disser.pdf: disser.dtx
+ $(PDFLATEX) $(PDFLATEXFLAGS) $<
$(MI) -r $(TARGET)
+ $(PDFLATEX) $(PDFLATEXFLAGS) $<
+ $(PDFLATEX) $(PDFLATEXFLAGS) $<
+
+%.dvi: %.dtx
+ $(LATEX) $(LATEXFLAGS) $<
+ $(LATEX) $(LATEXFLAGS) $<
+
+%.dvi: %.tex
$(LATEX) $(LATEXFLAGS) $<
$(LATEX) $(LATEXFLAGS) $<
@@ -81,13 +98,13 @@ clean:
$(PDFLATEX) $(PDFLATEXFLAGS) $<
help:
- @echo "Targets:"
- @echo " all (default) build classes and documentation"
- @echo " class build classes"
- @echo " clean remove ouptut files"
- @echo " doc build DVI and PDF versions of documentation"
- @echo " dvi build DVI version of documentation"
- @echo " pdf build PDF version of documentation"
- @echo " install install package and documentation"
- @echo " help show 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"