blob: 968b2ea99f792e95f6e144925b7a4deb2f4e6f79 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
########################################################################
## LaTeX2e Makefile
##
## For configuration, update the following defines:
##
## $Id: Makefile 1490 2005-09-30 14:30:44Z brucker $
##
## This file ist part of the svninfo package. Please see the file
## svninfo.dtx for copyright information.
########################################################################
BASE = svninfo
TEXDIR =
CONTRIB = $(TEXDIR)/lib/texmf/tex/latex2e/contrib/$(BASE)
DOCDIR = $(TEXDIR)/doc/latex2e
DVIPS = dvips
LATEX = latex
MAKEINDEX = makeindex
LATEX2HTML = latex2html
PDFLATEX = pdflatex
HTML_VER = 4.0,latin1,math
HTML_DIR = html
TAR = tar
########################################################################
REV = 0.3
TAR_FILE = svninfo-$(REV).tar.gz
TAR_DIR = svninfo-$(REV)
SRC = svninfo.dtx svninfo.ins README-$(REV) Makefile
GEN = svninfo.sty svninfo2html.tex svninfo.perl svninfo.cfg \
svninfo.init
all: $(BASE).sty dvi ps html pdf clean
sty: svninfo.sty
dtx: svninfo.dtx svninfo2html.tex
dvi: svninfo.dvi svninfo2html.dvi
ps: svninfo.ps svninfo2html.ps
pdf: svninfo.pdf svninfo2html.pdf
idx: $(BASE).ind $(BASE).gls
$(LATEX) $(BASE).dtx
%.sty:%.dtx %.ins
$(LATEX) $*.ins
svninfo.cfg: svninfo.sty
svninfo2html.tex: svninfo.sty
svninfo.perl: svninfo.sty
svninfo.init: svninfo.sty
%.dvi:%.dtx
$(LATEX) $*.dtx
makeindex -s gind.ist -o svninfo.ind svninfo.idx
makeindex -s gglo.ist -o svninfo.gls svninfo.glo
$(LATEX) $*.dtx
%.dvi:%.tex
$(LATEX) $*.tex
$(LATEX) $*.tex
%.pdf:%.dtx
rm -f *.toc *.out
$(PDFLATEX) $*.dtx
$(PDFLATEX) $*.dtx
%.pdf:%.tex
$(PDFLATEX) $*.tex
$(PDFLATEX) $*.tex
%.ps:%.dvi
$(DVIPS) $*.dvi
html: svninfo.perl svninfo2html.tex
rm -fr $(HTML_DIR)
mkdir $(HTML_DIR)
@if type $(LATEX2HTML) > /dev/null 2>&1; \
then $(LATEX) svninfo2html.tex; \
$(LATEX2HTML) -dir $(HTML_DIR) -init_file svninfo.init \
-html_version $(HTML_VER) svninfo2html.tex; \
else echo; echo; \
echo "******* no $(LATEX2HTML) installed"; \
echo; echo; \
fi
tar: distclean
rm -f README-$(REV)
cp README README-$(REV)
rm -fr $(TAR_DIR) $(TAR_FILE) $(TAR_FILE).gz
mkdir $(TAR_DIR)
cp -p $(SRC) $(TAR_DIR)
$(TAR) -zcvf $(TAR_FILE) $(TAR_DIR);
rm -rf $(TAR_DIR)
clean:
rm -f *.log *.aux *.lof *.lot *.toc *.idx *.ind *.glo *.gls *~ *.ilg \
*.out
realclean: clean
rm -fr $(HTML_DIR) *.dvi *.ps $(GEN) *.pdf
distclean: realclean
rm -fr README-*
|