1 include $(top_srcdir)/config/common.am
3 DISTCLEANFILES += $(tocfiles)
5 EXTRA_DIST = depend.py doc_toc.py README.Documentation $(DEPENDFILE) $(docfiles)
7 clipartdocdir = $(pkgdatadir)/doc/clipart
8 dist_clipartdoc_DATA = \
9 clipart/escher-lsd.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
28 csdocdir = $(pkgdatadir)/doc/cs
32 dadocdir = $(pkgdatadir)/doc/da
36 dedocdir = $(pkgdatadir)/doc/de
38 de/Customization.lyx \
45 esdocdir = $(pkgdatadir)/doc/es
47 es/DocumentoPostizo1.lyx \
48 es/DocumentoPostizo2.lyx \
49 es/DocumentoTextoPostizo.txt \
50 es/EmbeddedObjects.lyx \
55 esclipartdocdir = $(pkgdatadir)/doc/es/clipart
56 dist_esclipartdoc_DATA = \
57 es/clipart/ComentNotaImagenQt4.png \
58 es/clipart/CuadroMinipagQt4.png \
59 es/clipart/DocumentoHijoQt4.png \
60 es/clipart/etiquetaQt4.png \
61 es/clipart/flotanteQt4.png \
62 es/clipart/GrisNotaImagenQt4.png \
63 es/clipart/MaterialExternoQt4.png \
64 es/clipart/NotaEnmarcadaImg.png \
65 es/clipart/NotaLyXImagenQt4.png \
66 es/clipart/notapieQt4.png \
67 es/clipart/NotaSombreadaImg.png \
68 es/clipart/referenciaQt4.png
70 eudocdir = $(pkgdatadir)/doc/eu
72 eu/Customization.lyx \
79 frdocdir = $(pkgdatadir)/doc/fr
81 fr/Customization.lyx \
88 gldocdir = $(pkgdatadir)/doc/gl
93 hedocdir = $(pkgdatadir)/doc/he
98 hudocdir = $(pkgdatadir)/doc/hu
103 itdocdir = $(pkgdatadir)/doc/it
105 it/Customization.lyx \
110 nldocdir = $(pkgdatadir)/doc/nl
115 nbdocdir = $(pkgdatadir)/doc/nb
119 pldocdir = $(pkgdatadir)/doc/pl
125 ptdocdir = $(pkgdatadir)/doc/pt
130 rodocdir = $(pkgdatadir)/doc/ro
134 rudocdir = $(pkgdatadir)/doc/ru
140 skdocdir = $(pkgdatadir)/doc/sk
145 sldocdir = $(pkgdatadir)/doc/sl
150 svdocdir = $(pkgdatadir)/doc/sv
155 docdir = $(pkgdatadir)/doc
159 DummyTextDocument.txt \
162 EmbeddedObjects.lyx \
171 doc_DATA = $(docfiles)
173 DEPENDFILE = $(srcdir)/Makefile.depend
174 # include $(DEPENDFILE) does not work because automake is too limited.
175 include $(srcdir)/Makefile.depend
177 TOCs : $(DEPENDFILE) $(tocfiles)
178 @echo Made TOCs succesfully.
180 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
181 # new doc files might have been added
182 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
183 python $(srcdir)/depend.py > $(DEPENDFILE)
185 # The TOCs are not built for the install and dist targets if they don't exist
186 # for some weird reason.
187 # Make complains although we have rules for them in $(DEPENDFILE), so we
188 # must not include the TOCs in $(docfiles) and have to use the install and
190 dist-hook: $(tocfiles)
191 for i in $(tocfiles); \
193 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
194 else file="$$i"; fi; \
195 cp -p "$$file" "$(distdir)"; \
197 install-data-hook: $(tocfiles)
198 for i in $(tocfiles); \
200 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
201 else file="$$i"; fi; \
202 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
206 for i in $(tocfiles); \
208 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \