summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/rcsinfo/Makefile
blob: bcac06a1455f755f1f70691c5870915c08d375bb (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
########################################################################
## LaTeX2e Makefile
##
## For configuration, update the following defines:
##
## Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe, Germany
## Juergen.Vollmer@acm.org
##
## $Id: Makefile,v 1.21 2005/02/25 07:53:37 vollmer Exp $
##
########################################################################

BASE	   = rcsinfo

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   = 2.0,latin1
# HTML_VER   = 2.1,latin1
# HTML_VER   = 2.2,latin1
# HTML_VER   = 3.0,latin1
# HTML_VER   = 3.1,latin1
# HTML_VER   = 3.2,latin1
# HTML_VER   = 4.0,latin1
# HTML_VER   = 2.0,latin1,math
# HTML_VER   = 2.1,latin1,math
# HTML_VER   = 2.2,latin1,math2
# HTML_VER   = 3.0,latin1,math
# HTML_VER   = 3.1,latin1,math
# HTML_VER   = 3.2,latin1,math
  HTML_VER   = 4.0,latin1,math

HTML_DIR   = html

TAR	   = tar

########################################################################

REV		= 1.11
TAR_FILE	= rcsinfo-$(REV).tar.gz
TAR_DIR		= rcsinfo-$(REV)
SRC		= rcsinfo.dtx rcsinfo.ins README \
		  rcsinfo.pdf rcsinfo.sty rcsinfo.perl rcsinfo.init Makefile
GEN		= rcsinfo.sty rcsinfo2html.tex rcsinfo.perl rcsinfo.cfg \
		  rcsinfo.init

all:		$(BASE).sty dvi ps html pdf clean

sty:		rcsinfo.sty
dtx:		rcsinfo.dtx rcsinfo2html.tex
dvi:		rcsinfo.dvi rcsinfo2html.dvi
pdf:		rcsinfo.pdf rcsinfo2html.pdf
ps:		rcsinfo.ps  rcsinfo2html.ps
idx:		$(BASE).ind $(BASE).gls
		$(LATEX) $(BASE).dtx

%.sty:%.dtx %.ins
	$(LATEX) $*.ins

rcsinfo.cfg:	  rcsinfo.sty
rcsinfo2html.tex: rcsinfo.sty
rcsinfo.perl:	  rcsinfo.sty
rcsinfo.init:     rcsinfo.sty

%.dvi:%.dtx
	$(LATEX) $*.dtx
	makeindex -s gind.ist -o rcsinfo.ind rcsinfo.idx
	makeindex -s gglo.ist -o rcsinfo.gls rcsinfo.glo
	$(LATEX) $*.dtx

%.dvi:%.tex
	$(LATEX) $*.tex
	$(LATEX) $*.tex

%.pdf:%.dtx
	rm -f *.toc *.out
	$(PDFLATEX) $*.dtx
	$(PDFLATEX) $*.dtx

%.pdf:%.tex
	rm -f *.toc *.out
	$(PDFLATEX) $*.tex
	$(PDFLATEX) $*.tex

%.ps:%.dvi
	$(DVIPS) $*.dvi

html:	rcsinfo.perl rcsinfo2html.tex
	rm -fr $(HTML_DIR)
	mkdir $(HTML_DIR)
	@if type $(LATEX2HTML) > /dev/null 2>&1;			\
	then $(LATEX) rcsinfo2html.tex;					\
	     $(LATEX2HTML) -dir $(HTML_DIR) -init_file rcsinfo.init	\
	     -html_version $(HTML_VER) rcsinfo2html.tex;		\
	else echo; echo; 						\
	     echo "******* no $(LATEX2HTML) installed";			\
	     echo; echo;						\
	fi

tar: distclean rcsinfo.sty pdf
	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-*