blob: aee32e453657d6af2c9598f100e239fd5618c3c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#
# Makefile for LaTeX packages
# Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com>
#
TARGET=disser
SUBCLASS=gost732
TEXMF=/usr/share/texmf
DESTDIR=$(TEXMF)/tex/latex/$(TARGET)
DOCDIR=$(TEXMF)/doc/latex/$(TARGET)
LATEX=latex
PDFLATEX=pdflatex
MI=makeindex
LATEXFLAGS=
PDFLATEXFLAGS=
INSTFILES=*.cls *.rtx
DOCFILES=*.dvi *.pdf *.ps
CLEXT= *.log *.out *.aux *.dvi *.idx *.ilg *.ind *.glo *.toc *.bak *.bbl *.blg *.sav
CLFILES=$(INSTFILES) $(DOCFILES) $(CLEXT)
all: class doc
class: *.cls
doc: dvi pdf
dvi: $(TARGET).dvi $(SUBCLASS).dvi
pdf: $(TARGET).pdf $(SUBCLASS).pdf
install: all
mkdir -p $(DESTDIR)
mkdir -p $(DOCDIR)
cp $(INSTFILES) $(DESTDIR)
cp $(DOCFILES) $(DOCDIR)
clean:
rm -f $(CLFILES)
%.cls: %.ins
$(TEX) $<
%.dvi: %.dtx
$(LATEX) $(LATEXFLAGS) $<
$(MI) -r $(TARGET)
$(LATEX) $(LATEXFLAGS) $<
$(LATEX) $(LATEXFLAGS) $<
%.pdf: %.dtx
$(PDFLATEX) $(PDFLATEXFLAGS) $<
$(MI) -r $(TARGET)
$(PDFLATEX) $(PDFLATEXFLAGS) $<
$(PDFLATEX) $(PDFLATEXFLAGS) $<
help:
@echo "List of 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"
|