summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/paresse/Makefile
blob: c36bb56210f29f9ed40e4ea44926aab196271d54 (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
191
192
193
194
195
196
197
198
199
200
201
202
203
# ---------------------------------------------------------------
# Time-stamp: <2013-02-16 10:51:17 novatux>
# 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
# ---------------------------------------------------------------
PKGNAME=paresse
VERSION=4.1

TESTSRCUTIL= \
	ex-com-utf8-tame.tex \
	ex-com-utf8-wild.tex \

TESTSRCTEX= \
	test-latex-8bits-tame.tlx \
	test-latex-8bits-wild.tlx \
	test-latex-utf8-tame.tlx \
	test-latex-utf8-wild.tlx \
	test-lualatex-tame.llx \
	test-lualatex-wild.llx \
	test-xelatex-tame.xlx \
	test-xelatex-wild.xlx

TESTSRC= \
	$(TESTSRCUTIL) \
	$(TESTSRCTEX)

SOURCE= Makefile \
	$(PKGNAME).dtx \
	$(PKGNAME)-doc.dtx \
	$(PKGNAME).ins \
	LISEZMOI \
	README

PDFDOC= $(PKGNAME).pdf \
	$(PKGNAME)-fr.pdf \
	$(PKGNAME)-en.pdf \
	$(PKGNAME)-ex-fr.pdf \
	$(PKGNAME)-ex-en.pdf

PDFDOCSUP = \
	 test-latex-8bits-tame.pdf \
	test-latex-8bits-wild.pdf \
	test-latex-utf8-tame.pdf \
	test-latex-utf8-wild.pdf \
	test-lualatex-tame.pdf \
	test-lualatex-wild.pdf \
	test-xelatex-tame.pdf \
	test-xelatex-wild.pdf

SRCDOC=	$(PKGNAME)-doc.dtx

TEXDOC= $(PKGNAME)-fr.ltx \
	$(PKGNAME)-en.ltx \
	$(PKGNAME)-ex-fr.elx \
	$(PKGNAME)-ex-en.elx

CTANDOC= $(PDFDOC)

DECHETS= \
	$(TEXDOC)\
	$(PDFDOC)\
	$(PDFDOCSUP)

REPERTS = \
	doc \
	tex \
	source 

TEX =   $(PKGNAME).sty \
	$(PKGNAME)utf8.sto \
	$(PKGNAME)old.sto

GARBAGE= $(wildcard *.aux)\
	$(wildcard *.log)\
	$(wildcard *.toc)\
	$(wildcard *.out)\
	$(wildcard *.glo)\
	$(wildcard *.gls)\
	$(wildcard *.ilg)\
	$(wildcard *.ind)\
	$(wildcard *.idx)\
	$(wildcard *.hd)\
	$(wildcard *.ltx)\
	$(wildcard *.elx)\
	$(wildcard *~)

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

.SUFFIXES: .sty .ins .dtx .pdf .ltx .tex .llx .xlx .tlx .elx

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

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

.ltx.pdf:
	pdflatex $<
	pdflatex $<
	makeindex -s gind.ist $(*D)/$(*F)
	pdflatex $<

.elx.pdf:
	pdflatex $<
	pdflatex $<

.tlx.pdf:
	pdflatex $<

.llx.pdf:
	lualatex $<

.xlx.pdf:
	xelatex $<

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

all: $(PKGNAME).sty $(PDFDOC) $(PDFDOCSUP)\
	$(TEXDOC) $(PKGNAME).ins

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

help: 
	@-echo "******************************************************"
	@-echo "** Choisir une des options :                         *"
	@-echo "== Choose one of the options:                        *"
	@-echo "** 'all' pour produire tous les fichiers             *"
	@-echo "== 'all' to produce all the files                    *"
	@-echo "** 'clean' suppression des fichiers auxiliaires      *"
	@-echo "== 'clean' delete the auxiliary files                *"
	@-echo "** 'distclean' pour ne conserver que les sources     *"
	@-echo "== 'distclean' to keep only the sources              *"
	@-echo "******************************************************"

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

dist: all clean

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

clean:
	@-rm -f $(GARBAGE)

distclean: clean
	@-rm -f $(DECHETS)
	@-rm -f $(TEX)
	@-rm -f common.tex

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

texlive: dist
	@-rm -rf $(REPERTS)
	@-mkdir -p tex/latex/$(PKGNAME)
	@-mkdir -p doc/latex/$(PKGNAME)
	@-mkdir -p source/latex/$(PKGNAME)
	@-mkdir -p TEST	
	@-cp $(TEX) tex/latex/$(PKGNAME)
	@-cp $(CTANDOC) doc/latex/$(PKGNAME)
	@-cp $(SOURCE) source/latex/$(PKGNAME)
	@-cp $(TESTSRC) TEST
	@-zip -r $(PKGNAME)-TEST TEST/
	@-mv $(PKGNAME)-TEST.zip source/latex/$(PKGNAME)/
	@-rm -rf TEST/ 
	@-mkdir -p $(PKGNAME)
	@-cp $(CTANDOC) ./$(PKGNAME)
	@-cp $(SOURCE) ./$(PKGNAME)
	@-cp $(TEX) ./$(PKGNAME)

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

zip:	texlive
	@-rm -f $(PKGNAME).zip
	@-zip -r $(PKGNAME) $(REPERTS)
	@-rm -rf $(REPERTS)
	@-mv $(PKGNAME).zip $(PKGNAME).tds.zip
	@-zip -r $(PKGNAME) $(PKGNAME)
	@-zip -r $(PKGNAME) $(PKGNAME).tds.zip
	@-rm -rf $(PKGNAME)
	@-rm -f $(PKGNAME).tds.zip

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

ctan: zip distclean

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

doc: $(PKGNAME).ins $(PKGNAME).pdf $(PKGNAME)-doc.dtx

$(PKGNAME).sty: $(PKGNAME).ins $(PKGNAME).dtx
$(TEXDOC): $(PKGNAME).ins $(PKGNAME).dtx $(PKGNAME)-doc.dtx
$(PDFDOC): $(TEXDOC)
# ---------------------------------------------------------------
# echu e an abaden
# Le \TeX nicien de surface 2011/04/17, 2013/02/16