]> git.lyx.org Git - lyx.git/blob - lib/doc/Makefile.am
9daa95cb0158e8a24be357705f15e1fa0e6faca1
[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) $(docfiles)
6
7 clipartdocdir = $(pkgdatadir)/doc/clipart
8 dist_clipartdoc_DATA = \
9         clipart/escher-lsd.eps \
10         clipart/mobius.eps \
11         clipart/platypus.eps \
12         clipart/BoxInsetDefaultQt4.png \
13         clipart/ChildDocumentQt4.png \
14         clipart/CommentNoteImageQt4.png \
15         clipart/endnotes.pdf \
16         clipart/ExternalMaterialQt4.png \
17         clipart/floatQt4.png \
18         clipart/footnoteQt4.png \
19         clipart/FramedNoteImageQt4.png \
20         clipart/GreyedOutNoteImageQt4.png \
21         clipart/labelQt4.png \
22         clipart/LyXNoteImageQt4.png \
23         clipart/referenceQt4.png \
24         clipart/ShadedNoteImageQt4.png \
25         clipart/without_fntright.pdf \
26         clipart/with_fntright.pdf
27
28 csdocdir = $(pkgdatadir)/doc/cs
29 dist_csdoc_DATA = \
30         cs/Tutorial.lyx
31
32 dadocdir = $(pkgdatadir)/doc/da
33 dist_dadoc_DATA = \
34         da/Intro.lyx
35
36 dedocdir = $(pkgdatadir)/doc/de
37 dist_dedoc_DATA = \
38         de/Customization.lyx \
39         de/Extended.lyx \
40         de/FAQ.lyx \
41         de/Intro.lyx \
42         de/Tutorial.lyx \
43         de/UserGuide.lyx
44
45 declipartdocdir = $(pkgdatadir)/doc/de/clipart
46 dist_declipartdoc_DATA = \
47         de/ExternesMaterialQt4.png \
48         de/FussnoteQt4.png \
49         de/GerahmteNotizQt4.png \
50         de/GleitobjektQt4.png \
51         de/GrauschriftNotizQt4.png \
52         de/KommentarQt4.png \
53         de/LyXNotizQt4.png \
54         de/Marke.png \
55         de/Querverweis.png \
56         de/SchattierteNotizQt4.png \
57         de/StandardBoxQt4.png \
58         de/UnterdokumentQt4.png
59
60 esdocdir = $(pkgdatadir)/doc/es
61 dist_esdoc_DATA = \
62         es/DocumentoPostizo1.lyx \
63         es/DocumentoPostizo2.lyx \
64         es/DocumentoTextoPostizo.txt \
65         es/EmbeddedObjects.lyx \
66         es/Extended.lyx \
67         es/Intro.lyx \
68         es/Tutorial.lyx
69
70 esclipartdocdir = $(pkgdatadir)/doc/es/clipart
71 dist_esclipartdoc_DATA = \
72         es/clipart/ComentNotaImagenQt4.png \
73         es/clipart/CuadroMinipagQt4.png \
74         es/clipart/DocumentoHijoQt4.png \
75         es/clipart/etiquetaQt4.png \
76         es/clipart/flotanteQt4.png \
77         es/clipart/GrisNotaImagenQt4.png \
78         es/clipart/MaterialExternoQt4.png \
79         es/clipart/NotaEnmarcadaImg.png \
80         es/clipart/NotaLyXImagenQt4.png \
81         es/clipart/notapieQt4.png \
82         es/clipart/NotaSombreadaImg.png \
83         es/clipart/referenciaQt4.png
84
85 eudocdir = $(pkgdatadir)/doc/eu
86 dist_eudoc_DATA = \
87         eu/Customization.lyx \
88         eu/Extended.lyx \
89         eu/FAQ.lyx \
90         eu/Intro.lyx \
91         eu/Tutorial.lyx \
92         eu/UserGuide.lyx
93
94 frdocdir = $(pkgdatadir)/doc/fr
95 dist_frdoc_DATA = \
96         fr/Customization.lyx \
97         fr/Extended.lyx \
98         fr/FAQ.lyx \
99         fr/Intro.lyx \
100         fr/Tutorial.lyx \
101         fr/UserGuide.lyx
102
103 gldocdir = $(pkgdatadir)/doc/gl
104 dist_gldoc_DATA = \
105         gl/Intro.lyx \
106         gl/Tutorial.lyx
107
108 hedocdir = $(pkgdatadir)/doc/he
109 dist_hedoc_DATA = \
110         he/Intro.lyx \
111         he/Tutorial.lyx
112
113 hudocdir = $(pkgdatadir)/doc/hu
114 dist_hudoc_DATA = \
115         hu/Intro.lyx \
116         hu/Tutorial.lyx
117
118 itdocdir = $(pkgdatadir)/doc/it
119 dist_itdoc_DATA = \
120         it/Customization.lyx \
121         it/Intro.lyx \
122         it/Tutorial.lyx \
123         it/UserGuide.lyx
124
125 nldocdir = $(pkgdatadir)/doc/nl
126 dist_nldoc_DATA = \
127         nl/Intro.lyx \
128         nl/Tutorial.lyx
129
130 nbdocdir = $(pkgdatadir)/doc/nb
131 dist_nbdoc_DATA = \
132         nb/Intro.lyx
133
134 pldocdir = $(pkgdatadir)/doc/pl
135 dist_pldoc_DATA = \
136         pl/Extended.lyx \
137         pl/Intro.lyx \
138         pl/Tutorial.lyx
139
140 ptdocdir = $(pkgdatadir)/doc/pt
141 dist_ptdoc_DATA = \
142         pt/Intro.lyx \
143         pt/Tutorial.lyx
144
145 rodocdir = $(pkgdatadir)/doc/ro
146 dist_rodoc_DATA = \
147         ro/Intro.lyx
148
149 rudocdir = $(pkgdatadir)/doc/ru
150 dist_rudoc_DATA = \
151         ru/FAQ.lyx \
152         ru/Intro.lyx \
153         ru/Tutorial.lyx
154
155 skdocdir = $(pkgdatadir)/doc/sk
156 dist_skdoc_DATA = \
157         sk/Tutorial.lyx \
158         sk/UserGuide.lyx
159
160 sldocdir = $(pkgdatadir)/doc/sl
161 dist_sldoc_DATA = \
162         sl/Intro.lyx \
163         sl/Tutorial.lyx
164
165 svdocdir = $(pkgdatadir)/doc/sv
166 dist_svdoc_DATA = \
167         sv/Intro.lyx \
168         sv/Tutorial.lyx
169
170 docdir = $(pkgdatadir)/doc
171 dist_doc_DATA = \
172         Customization.lyx \
173         DocStyle.lyx \
174         DummyTextDocument.txt \
175         DummyDocument1.lyx \
176         DummyDocument2.lyx \
177         EmbeddedObjects.lyx \
178         Extended.lyx \
179         FAQ.lyx \
180         Intro.lyx \
181         LaTeXConfig.lyx.in \
182         Reference.lyx \
183         Tutorial.lyx \
184         UserGuide.lyx
185
186 doc_DATA = $(docfiles) 
187
188 DEPENDFILE = $(srcdir)/Makefile.depend
189 # include $(DEPENDFILE) does not work because automake is too limited.
190 include $(srcdir)/Makefile.depend
191
192 TOCs : $(DEPENDFILE) $(tocfiles)
193         @echo Made TOCs succesfully.
194
195 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
196 # new doc files might have been added
197 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
198         python $(srcdir)/depend.py > $(DEPENDFILE)
199
200 # The TOCs are not built for the install and dist targets if they don't exist
201 # for some weird reason.
202 # Make complains although we have rules for them in $(DEPENDFILE), so we
203 # must not include the TOCs in $(docfiles) and have to use the install and
204 # dist hooks below.
205 dist-hook: $(tocfiles)
206         for i in $(tocfiles); \
207         do \
208                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
209                 else file="$$i"; fi; \
210                 cp -p "$$file" "$(distdir)"; \
211         done
212 install-data-hook: $(tocfiles)
213         for i in $(tocfiles); \
214         do \
215                 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
216                 else file="$$i"; fi; \
217                 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
218         done
219
220 uninstall-local:
221         for i in $(tocfiles); \
222         do \
223                 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
224         done
225
226 .PHONY: TOCs