blob: d51c64b1b3550ba051c1372b90f34b44484d256c (
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
|
#
# 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)
TEX=latex
PDFTEX=pdflatex
TEXFLAGS=
INSTFILES=*.cls *.rtx
DOCFILES=*.dvi *.pdf
CLEXT= *.log *.out *.aux *.dvi *.idx *.glo *.toc *.bak *.bbl *.blg
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
$(TEX) $(TEXFLAGS) $<
$(TEX) $(TEXFLAGS) $<
%.pdf: %.dtx
$(PDFTEX) $(TEXFLAGS) $<
$(PDFTEX) $(TEXFLAGS) $<
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"
|