]> git.lyx.org Git - lyx.git/blob - lib/doc/Makefile.am
724fbb67504e39972f750946bcd3139e107a9c21
[lyx.git] / lib / doc / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 DISTCLEANFILES += $(tocfiles)
4
5 EXTRA_DIST = depend.py doc_toc.py README.Documentation $(DEPENDFILE)
6
7 bibliodocdir = $(pkgdatadir)/doc/biblio
8 dist_bibliodoc_DATA = \
9         biblio/alphadin.bst \
10         biblio/LyXDocs.bib
11
12 clipartdocdir = $(pkgdatadir)/doc/clipart
13 dist_clipartdoc_DATA = \
14         clipart/escher-lsd.eps \
15         clipart/mobius.eps \
16         clipart/platypus.eps \
17         clipart/Abstract.pdf \
18         clipart/BoxInsetDefaultQt4.png \
19         clipart/ChangesToolbar.png \
20         clipart/ChildDocumentQt4.png \
21         clipart/CommentNoteImageQt4.png \
22         clipart/endnotes.pdf \
23         clipart/ERT.png \
24         clipart/ExternalMaterialQt4.png \
25         clipart/ExtraToolbar.png \
26         clipart/floatQt4.png \
27         clipart/footnoteQt4.png \
28         clipart/GreyedOutNoteImageQt4.png \
29         clipart/labelQt4.png \
30         clipart/LaTeX.png \
31         clipart/LyXNoteImageQt4.png \
32         clipart/macrobox.png \
33         clipart/macrouse.png \
34         clipart/mbox.png \
35         clipart/referenceQt4.png \
36         clipart/SpaceMarker.png \
37         clipart/StandardToolbar.png \
38         clipart/ToolbarEnvBox.png \
39         clipart/ViewToolbar.png \
40         clipart/without_fntright.pdf \
41         clipart/with_fntright.pdf
42
43 cadocdir = $(pkgdatadir)/doc/ca
44 dist_cadoc_DATA = \
45         ca/Intro.lyx
46
47 csdocdir = $(pkgdatadir)/doc/cs
48 dist_csdoc_DATA = \
49         cs/Tutorial.lyx
50
51 dadocdir = $(pkgdatadir)/doc/da
52 dist_dadoc_DATA = \
53         da/Intro.lyx
54
55 dedocdir = $(pkgdatadir)/doc/de
56 dist_dedoc_DATA = \
57         de/Customization.lyx \
58         de/DummyDocument1.lyx \
59         de/DummyDocument2.lyx \
60         de/DummyTextDocument.txt \
61         de/EmbeddedObjects.lyx \
62         de/Extended.lyx \
63         de/FAQ.lyx \
64         de/Formelnummerierung.lyx \
65         de/Intro.lyx \
66         de/Math.lyx \
67         de/Shortcuts.lyx \
68         de/Tutorial.lyx \
69         de/UserGuide.lyx
70
71 declipartdocdir = $(pkgdatadir)/doc/de/clipart
72 dist_declipartdoc_DATA = \
73         de/clipart/ERT.png \
74         de/clipart/ExternesMaterialQt4.png \
75         de/clipart/FussnoteQt4.png \
76         de/clipart/GleitobjektQt4.png \
77         de/clipart/GrauschriftNotizQt4.png \
78         de/clipart/KommentarQt4.png \
79         de/clipart/LyXNotizQt4.png \
80         de/clipart/Marke.png \
81         de/clipart/Querverweis.png \
82         de/clipart/StandardBoxQt4.png \
83         de/clipart/UnterdokumentQt4.png
84
85 esdocdir = $(pkgdatadir)/doc/es
86 dist_esdoc_DATA = \
87         es/DocumentoPostizo1.lyx \
88         es/DocumentoPostizo2.lyx \
89         es/DocumentoTextoPostizo.txt \
90         es/EmbeddedObjects.lyx \
91         es/Extended.lyx \
92         es/FAQ.lyx \
93         es/Formula-numbering.lyx \
94         es/Intro.lyx \
95         es/Math.lyx \
96         es/Tutorial.lyx \
97         es/UserGuide.lyx
98
99 esclipartdocdir = $(pkgdatadir)/doc/es/clipart
100 dist_esclipartdoc_DATA = \
101         es/clipart/ComentNotaImagenQt4.png \
102         es/clipart/CuadroMinipagQt4.png \
103         es/clipart/DocumentoHijoQt4.png \
104         es/clipart/es_ERT.png \
105         es/clipart/etiquetaQt4.png \
106         es/clipart/flotanteQt4.png \
107         es/clipart/GrisNotaImagenQt4.png \
108         es/clipart/MaterialExternoQt4.png \
109         es/clipart/NotaLyXImagenQt4.png \
110         es/clipart/notapieQt4.png \
111         es/clipart/referenciaQt4.png \
112         es/clipart/Resumen.pdf
113
114 eudocdir = $(pkgdatadir)/doc/eu
115 dist_eudoc_DATA = \
116         eu/Customization.lyx \
117         eu/Extended.lyx \
118         eu/FAQ.lyx \
119         eu/Intro.lyx \
120         eu/Tutorial.lyx \
121         eu/UserGuide.lyx
122
123 frdocdir = $(pkgdatadir)/doc/fr
124 dist_frdoc_DATA = \
125         fr/Customization.lyx \
126         fr/DocumentBidon1.lyx \
127         fr/DocumentBidon2.lyx \
128         fr/DocumentTexteBidon.txt \
129         fr/EmbeddedObjects.lyx \
130         fr/Extended.lyx \
131         fr/FAQ.lyx \
132         fr/Formula-numbering.lyx \
133         fr/Intro.lyx \
134         fr/Math.lyx \
135         fr/Tutorial.lyx \
136         fr/UserGuide.lyx
137
138 frclipartdocdir = $(pkgdatadir)/doc/fr/clipart
139 dist_frclipartdoc_DATA = \
140         fr/clipart/BoxInsetDefaultQt4.png \
141         fr/clipart/ChildDocumentQt4.png \
142         fr/clipart/CommentNoteImageQt4.png \
143         fr/clipart/GreyedOutNoteImageQt4.png \
144         fr/clipart/LyXNoteImageQt4.png \
145         fr/clipart/floatQt4.png \
146         fr/clipart/footnoteQt4.png \
147         fr/clipart/labelQt4.png
148
149 gldocdir = $(pkgdatadir)/doc/gl
150 dist_gldoc_DATA = \
151         gl/Intro.lyx \
152         gl/Tutorial.lyx
153
154 hedocdir = $(pkgdatadir)/doc/he
155 dist_hedoc_DATA = \
156         he/Intro.lyx \
157         he/Tutorial.lyx
158
159 hudocdir = $(pkgdatadir)/doc/hu
160 dist_hudoc_DATA = \
161         hu/Intro.lyx \
162         hu/Tutorial.lyx
163
164 itdocdir = $(pkgdatadir)/doc/it
165 dist_itdoc_DATA = \
166         it/Customization.lyx \
167         it/Intro.lyx \
168         it/Tutorial.lyx \
169         it/UserGuide.lyx
170
171 itclipartdocdir = $(pkgdatadir)/doc/it/clipart
172 dist_itclipartdoc_DATA = \
173         it/clipart/it_footnoteQt4.png \
174         it/clipart/it_referenceQt4.png
175
176 jadocdir = $(pkgdatadir)/doc/ja
177 dist_jadoc_DATA = \
178         ja/FAQ.lyx \
179         ja/Intro.lyx \
180         ja/LaTeXConfig.lyx \
181         ja/Shortcuts.lyx \
182         ja/Tutorial.lyx
183
184 jaclipartdocdir = $(pkgdatadir)/doc/ja/clipart
185 dist_jaclipartdoc_DATA = \
186         ja/clipart/footnoteQt4.png \
187         ja/clipart/referenceQt4.png
188
189 nldocdir = $(pkgdatadir)/doc/nl
190 dist_nldoc_DATA = \
191         nl/Intro.lyx \
192         nl/Tutorial.lyx
193
194 nbdocdir = $(pkgdatadir)/doc/nb
195 dist_nbdoc_DATA = \
196         nb/Intro.lyx
197
198 pldocdir = $(pkgdatadir)/doc/pl
199 dist_pldoc_DATA = \
200         pl/Extended.lyx \
201         pl/Intro.lyx \
202         pl/Tutorial.lyx
203
204 ptdocdir = $(pkgdatadir)/doc/pt
205 dist_ptdoc_DATA = \
206         pt/Intro.lyx \
207         pt/Tutorial.lyx
208
209 rodocdir = $(pkgdatadir)/doc/ro
210 dist_rodoc_DATA = \
211         ro/Intro.lyx
212
213 rudocdir = $(pkgdatadir)/doc/ru
214 dist_rudoc_DATA = \
215         ru/FAQ.lyx \
216         ru/Intro.lyx \
217         ru/Tutorial.lyx
218
219 skdocdir = $(pkgdatadir)/doc/sk
220 dist_skdoc_DATA = \
221         sk/Tutorial.lyx \
222         sk/UserGuide.lyx
223
224 sldocdir = $(pkgdatadir)/doc/sl
225 dist_sldoc_DATA = \
226         sl/Intro.lyx \
227         sl/Tutorial.lyx
228
229 svdocdir = $(pkgdatadir)/doc/sv
230 dist_svdoc_DATA = \
231         sv/Intro.lyx \
232         sv/Tutorial.lyx
233
234 docdir = $(pkgdatadir)/doc
235 dist_doc_DATA = \
236         Customization.lyx \
237         DocStyle.lyx \
238         DummyTextDocument.txt \
239         DummyDocument1.lyx \
240         DummyDocument2.lyx \
241         EmbeddedObjects.lyx \
242         Extended.lyx \
243         FAQ.lyx \
244         Formula-numbering.lyx \
245         Intro.lyx \
246         LaTeXConfig.lyx \
247         LFUNs.lyx \
248         Math.lyx \
249         Reference.lyx \
250         Shortcuts.lyx \
251         Tutorial.lyx \
252         UserGuide.lyx
253
254 doc_files = \
255             $(dist_doc_DATA) \
256             $(dist_cadoc_DATA) \
257             $(dist_csdoc_DATA) \
258             $(dist_dadoc_DATA) \
259             $(dist_dedoc_DATA) \
260             $(dist_esdoc_DATA) \
261             $(dist_eudoc_DATA) \
262             $(dist_frdoc_DATA) \
263             $(dist_gldoc_DATA) \
264             $(dist_hedoc_DATA) \
265             $(dist_hudoc_DATA) \
266             $(dist_itdoc_DATA) \
267             $(dist_jadoc_DATA) \
268             $(dist_nldoc_DATA) \
269             $(dist_nbdoc_DATA) \
270             $(dist_pldoc_DATA) \
271             $(dist_ptdoc_DATA) \
272             $(dist_rodoc_DATA) \
273             $(dist_rudoc_DATA) \
274             $(dist_skdoc_DATA) \
275             $(dist_sldoc_DATA) \
276             $(dist_svdoc_DATA)
277
278 DEPENDFILE = $(srcdir)/Makefile.depend
279 # include $(DEPENDFILE) does not work because automake is too limited.
280 include $(srcdir)/Makefile.depend
281
282 TOCs : $(DEPENDFILE) $(tocfiles)
283         @echo Made TOCs succesfully.
284
285 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
286 # new doc files might have been added
287 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
288         python $(srcdir)/depend.py > $(DEPENDFILE)
289
290 # The TOCs are not built for the install and dist targets if they don't exist
291 # for some weird reason.
292 # Make complains although we have rules for them in $(DEPENDFILE), so we
293 # must not include the TOCs in $(docfiles) and have to use the install and
294 # dist hooks below.
295 dist-hook: $(tocfiles)
296         for i in $(tocfiles); \
297         do \
298                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
299                 else file="$$i"; fi; \
300                 cp -p "$$file" "$(distdir)"; \
301         done
302 install-data-hook: $(tocfiles)
303         for i in $(tocfiles); \
304         do \
305                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
306                 else file="$$i"; fi; \
307                 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
308         done
309         for i in $(doc_files); \
310         do \
311                 if $(EGREP) -q "LYX_DIR_VER|LYX_USERDIR_VER" "$(DESTDIR)$(docdir)/$$i"; then \
312                         sed -e "s/LYX_DIR_VER/$(LYX_DIR_VER)/g" \
313                             -e "s/LYX_USERDIR_VER/$(LYX_USERDIR_VER)/g" \
314                                 "$(DESTDIR)$(docdir)/$$i" > "$(DESTDIR)$(docdir)/$$i.tmp"; \
315                         mv -f "$(DESTDIR)$(docdir)/$$i.tmp" "$(DESTDIR)$(docdir)/$$i"; \
316                         chmod 644 "$(DESTDIR)$(docdir)/$$i"; \
317                 fi; \
318         done
319
320 uninstall-local:
321         for i in $(tocfiles); \
322         do \
323                 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
324         done
325
326 .PHONY: TOCs