summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/clefval/Makefile
blob: 801ba0b9c436ddccafea6ab3a504d03fe0eda4f1 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# ---------------------------------------------------------------
# Makefile for the paresse package by Y. Henel
# modified version of the Makefile of the kerntest package 
# many thanks to Harald Harders whose kerntest.xml I have also
# hacked to obtain my paresse.xml
# 
# documentation bilingue / bilingual documentation
# ---------------------------------------------------------------

SRCDIR=clefval
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/clefval
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/clefval
SOURCEDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/source/latex/clefval
VERSION=0

TEX= 	clefval.sty \

DOC= 	clefval.pdf \


FRADOC= \
	LISEZMOI \
	Changements \
	exemple.pdf \
	exemple.tex \

ENGDOC= \
	README \
	Changes \
	example.pdf \
	example.tex \

SOURCE= \
	Makefile \
	clefval.dtx \
	clefval.ins \
	fra-clefval.ins \

XML=  	clefval.xml \

# ---------------------------------------------------------------

.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf

# ---------------------------------------------------------------
.ins.sty:
	latex $<

.dtx.pdf:
	pdflatex $<
	makeindex -s gind.ist $(*D)/$(*F)
	makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
	pdflatex $<

.tex.pdf:
	pdflatex $<
	pdflatex $<

.dvi.ps:
	dvips -o $(*D)/$(*F).ps $(*D)/$(*F)

# ---------------------------------------------------------------

sty: 
	@-rm -f clefval.sty		
	@-latex clefval.ins

eng-sty: sty

fra-sty: 
	@-rm -f clefval.sty	
	@-latex fra-clefval.ins

# ---------------------------------------------------------------

help: 
	@-echo "******************************************************"
	@-echo "* Choisir une des options :"
	@-echo "= Choose one of the options:"
	@-echo "* 'doc' -> clefval.pdf"
	@-echo "* 'fra-sty' -> clefval.sty (version française du module)"
	@-echo "* 'sty' -> clefval.sty (English version of the package)"
	@-echo "* 'dist'-> clefval.sty & doc"
	@-echo "* 'clean' petit nettoyage"
	@-echo "* 'distclean' (encore plus propre)"
	@-echo "* 'tar' -> clefval-VERSION.tar.gz"
	@-echo "* 'install-fra' pour l'installation "
	@-echo "* de l'extension francisée et de la documentation."
	@-echo "************            OU / OR            ***********"
	@-echo "= 'install-eng' for an installation"
	@-echo "= of the English version of package and documentation."
	@-echo "************           NOTA BENE           ***********"
	@-echo "*  l'installation est faite par defaut dans TEXMFLOCAL "
	@-echo "=  by default installs in TEXMFLOCAL" 
	@-echo "* c'est a dire :"
	@-echo "* that is: "
	@-echo `kpsewhich --expand-path='$$TEXMFLOCAL'`
	@-echo "******************************************************"

dist: sty clefval.pdf

# ---------------------------------------------------------------

clean:
	@-rm -f clefval.glo clefval.gls clefval.idx clefval.ilg
	@-rm -f clefval.ind clefval.aux clefval.log clefval.toc
	@-rm -f fra-clefval.log
	@-rm -f clefval.dvi clefval.ps
	@-rm -f exemple.aux exemple.log exemple.dvi exemple.ps
	@-rm -f example.aux example.log example.dvi example.ps
	@-rm -f *~

distclean: clean
	@-rm -f clefval.sty 
	@-rm -f clefval.pdf

# ---------------------------------------------------------------

tar:	dist clean
	echo clefval-$(VERSION).tar.gz
	-rm -f clefval-$(VERSION).tar.gz
	tar czCf .. clefval-$(VERSION).tar.gz \
	  $(SRCDIR)/README \
	  $(SRCDIR)/LISEZMOI \
	  $(SRCDIR)/Changes \
	  $(SRCDIR)/Changements \
	  $(SRCDIR)/Makefile \
	  $(SRCDIR)/clefval.dtx \
	  $(SRCDIR)/clefval.sty \
	  $(SRCDIR)/clefval.ins \
	  $(SRCDIR)/fra-clefval.ins \
	  $(SRCDIR)/clefval.pdf \
	  $(SRCDIR)/exemple.pdf \
	  $(SRCDIR)/example.pdf \
	  $(SRCDIR)/exemple.tex \
	  $(SRCDIR)/example.tex \
	  $(SRCDIR)/clefval.xml

# ---------------------------------------------------------------

texlive: sty doc clean
	@-rm -rf texmf
	mkdir -p texmf/tex/latex/clefval
	mkdir -p texmf/doc/latex/clefval
	mkdir -p texmf/source/latex/clefval
	mkdir -p texmf/doc/html/catalogue/entries
	cp $(TEX) texmf/tex/latex/clefval
	cp $(DOC) texmf/doc/latex/clefval
	cp $(ENGDOC) texmf/doc/latex/clefval
	cp $(FRADOC) texmf/doc/latex/clefval
	cp $(SOURCE) texmf/source/latex/clefval
	cp $(XML) texmf/doc/html/catalogue/entries

# ---------------------------------------------------------------

zip:	texlive
	-@rm -f clefval-$(VERSION).zip
	zip -r clefval-$(VERSION).zip texmf
	@-rm -r texmf/

# ---------------------------------------------------------------

install-fra: fra-sty doc
	if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR); fi
	if [ ! -d $(DOCDIR) ]; then mkdir -p $(DOCDIR); fi
	if [ ! -d $(SOURCEDIR) ]; then mkdir -p $(SOURCEDIR); fi
	install -m644 $(TEX) $(INSTALLDIR)
	install -m644 $(DOC) $(DOCDIR)
	install -m644 $(FRADOC) $(DOCDIR)
	install -m644 $(SOURCE) $(SOURCEDIR)
	texhash
# ---------------------------------------------------------------

install-eng: eng-sty doc
	if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR); fi
	if [ ! -d $(DOCDIR) ]; then mkdir -p $(DOCDIR); fi
	if [ ! -d $(SOURCEDIR) ]; then mkdir -p $(SOURCEDIR); fi
	install -m644 $(TEX) $(INSTALLDIR)
	install -m644 $(DOC) $(DOCDIR)
	install -m644 $(ENGDOC) $(DOCDIR)
	install -m644 $(SOURCE) $(SOURCEDIR)
	texhash
# ---------------------------------------------------------------

install: install-eng

doc: sty clefval.pdf 
# ---------------------------------------------------------------
# echu e an abaden
# Le \TeX nicien de surface 2004-05-20