Debian Codegraph @

texmf-dist/source/latex/rcsinfo/Makefile

raw
1 ########################################################################
2 ## LaTeX2e Makefile
3 ##
4 ## For configuration, update the following defines:
5 ##
6 ## Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe, Germany
7 ## [email protected]
8 ##
9 ## $Id: Makefile,v 1.21 2005/02/25 07:53:37 vollmer Exp $
10 ##
11 ########################################################################
12
13 BASE = rcsinfo
14
15 TEXDIR =
16 CONTRIB = $(TEXDIR)/lib/texmf/tex/latex2e/contrib/$(BASE)
17 DOCDIR = $(TEXDIR)/doc/latex2e
18
19 DVIPS = dvips
20 LATEX = latex
21 MAKEINDEX = makeindex
22 LATEX2HTML = latex2html
23 PDFLATEX = pdflatex
24
25 # HTML_VER = 2.0,latin1
26 # HTML_VER = 2.1,latin1
27 # HTML_VER = 2.2,latin1
28 # HTML_VER = 3.0,latin1
29 # HTML_VER = 3.1,latin1
30 # HTML_VER = 3.2,latin1
31 # HTML_VER = 4.0,latin1
32 # HTML_VER = 2.0,latin1,math
33 # HTML_VER = 2.1,latin1,math
34 # HTML_VER = 2.2,latin1,math2
35 # HTML_VER = 3.0,latin1,math
36 # HTML_VER = 3.1,latin1,math
37 # HTML_VER = 3.2,latin1,math
38 HTML_VER = 4.0,latin1,math
39
40 HTML_DIR = html
41
42 TAR = tar
43
44 ########################################################################
45
46 REV = 1.11
47 TAR_FILE = rcsinfo-$(REV).tar.gz
48 TAR_DIR = rcsinfo-$(REV)
49 SRC = rcsinfo.dtx rcsinfo.ins README \
50 rcsinfo.pdf rcsinfo.sty rcsinfo.perl rcsinfo.init Makefile
51 GEN = rcsinfo.sty rcsinfo2html.tex rcsinfo.perl rcsinfo.cfg \
52 rcsinfo.init
53
54 all: $(BASE).sty dvi ps html pdf clean
55
56 sty: rcsinfo.sty
57 dtx: rcsinfo.dtx rcsinfo2html.tex
58 dvi: rcsinfo.dvi rcsinfo2html.dvi
59 pdf: rcsinfo.pdf rcsinfo2html.pdf
60 ps: rcsinfo.ps rcsinfo2html.ps
61 idx: $(BASE).ind $(BASE).gls
62 $(LATEX) $(BASE).dtx
63
64 %.sty:%.dtx %.ins
65 $(LATEX) $*.ins
66
67 rcsinfo.cfg: rcsinfo.sty
68 rcsinfo2html.tex: rcsinfo.sty
69 rcsinfo.perl: rcsinfo.sty
70 rcsinfo.init: rcsinfo.sty
71
72 %.dvi:%.dtx
73 $(LATEX) $*.dtx
74 makeindex -s gind.ist -o rcsinfo.ind rcsinfo.idx
75 makeindex -s gglo.ist -o rcsinfo.gls rcsinfo.glo
76 $(LATEX) $*.dtx
77
78 %.dvi:%.tex
79 $(LATEX) $*.tex
80 $(LATEX) $*.tex
81
82 %.pdf:%.dtx
83 rm -f *.toc *.out
84 $(PDFLATEX) $*.dtx
85 $(PDFLATEX) $*.dtx
86
87 %.pdf:%.tex
88 rm -f *.toc *.out
89 $(PDFLATEX) $*.tex
90 $(PDFLATEX) $*.tex
91
92 %.ps:%.dvi
93 $(DVIPS) $*.dvi
94
95 html: rcsinfo.perl rcsinfo2html.tex
96 rm -fr $(HTML_DIR)
97 mkdir $(HTML_DIR)
98 @if type $(LATEX2HTML) > /dev/null 2>&1; \
99 then $(LATEX) rcsinfo2html.tex; \
100 $(LATEX2HTML) -dir $(HTML_DIR) -init_file rcsinfo.init \
101 -html_version $(HTML_VER) rcsinfo2html.tex; \
102 else echo; echo; \
103 echo "******* no $(LATEX2HTML) installed"; \
104 echo; echo; \
105 fi
106
107 tar: distclean rcsinfo.sty pdf
108 rm -fr $(TAR_DIR) $(TAR_FILE) $(TAR_FILE).gz
109 mkdir $(TAR_DIR)
110 cp -p $(SRC) $(TAR_DIR)
111 $(TAR) -zcvf $(TAR_FILE) $(TAR_DIR);
112 rm -rf $(TAR_DIR)
113
114 clean:
115 rm -f *.log *.aux *.lof *.lot *.toc *.idx *.ind *.glo *.gls *~ *.ilg \
116 *.out
117
118 realclean: clean
119 rm -fr $(HTML_DIR) *.dvi *.ps $(GEN) *.pdf
120
121 distclean: realclean
122 rm -fr README-*