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/CommentNoteImageQt4.png \
14 clipart/endnotes.pdf \
15 clipart/floatQt4.png \
16 clipart/footnoteQt4.png \
17 clipart/FramedNoteImageQt4.png \
18 clipart/GreyedOutNoteImageQt4.png \
19 clipart/labelQt4.png \
20 clipart/LyXNoteImageQt4.png \
21 clipart/referenceQt4.png \
22 clipart/ShadedNoteImageQt4.png \
23 clipart/without_fntright.pdf \
24 clipart/with_fntright.pdf
26 csdocdir = $(pkgdatadir)/doc/cs
30 dadocdir = $(pkgdatadir)/doc/da
34 dedocdir = $(pkgdatadir)/doc/de
36 de/Customization.lyx \
43 esdocdir = $(pkgdatadir)/doc/es
47 es/EmbeddedObjects.lyx \
48 es/clipart/ComentNotaImagenQt4.png \
49 es/clipart/CuadroMinipagQt4.png \
50 es/clipart/etiquetaQt4.png \
51 es/clipart/flotanteQt4.png \
52 es/clipart/GrisNotaImagenQt4.png \
53 es/clipart/NotaEnmarcadaImg.png \
54 es/clipart/NotaLyXImagenQt4.png \
55 es/clipart/notapieQt4.png \
56 es/clipart/NotaSombreadaImg.png \
57 es/clipart/referenciaQt4.png
59 eudocdir = $(pkgdatadir)/doc/eu
61 eu/Customization.lyx \
68 frdocdir = $(pkgdatadir)/doc/fr
70 fr/Customization.lyx \
77 gldocdir = $(pkgdatadir)/doc/gl
82 hedocdir = $(pkgdatadir)/doc/he
87 hudocdir = $(pkgdatadir)/doc/hu
92 itdocdir = $(pkgdatadir)/doc/it
94 it/Customization.lyx \
99 nldocdir = $(pkgdatadir)/doc/nl
104 nbdocdir = $(pkgdatadir)/doc/nb
108 pldocdir = $(pkgdatadir)/doc/pl
114 ptdocdir = $(pkgdatadir)/doc/pt
119 rodocdir = $(pkgdatadir)/doc/ro
123 rudocdir = $(pkgdatadir)/doc/ru
129 skdocdir = $(pkgdatadir)/doc/sk
134 sldocdir = $(pkgdatadir)/doc/sl
139 svdocdir = $(pkgdatadir)/doc/sv
144 docdir = $(pkgdatadir)/doc
148 EmbeddedObjects.lyx \
157 doc_DATA = $(docfiles)
159 DEPENDFILE = $(srcdir)/Makefile.depend
160 # include $(DEPENDFILE) does not work because automake is too limited.
161 include $(srcdir)/Makefile.depend
163 TOCs : $(DEPENDFILE) $(tocfiles)
164 @echo Made TOCs succesfully.
166 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
167 # new doc files might have been added
168 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
169 python $(srcdir)/depend.py > $(DEPENDFILE)
171 # The TOCs are not built for the install and dist targets if they don't exist
172 # for some weird reason.
173 # Make complains although we have rules for them in $(DEPENDFILE), so we
174 # must not include the TOCs in $(docfiles) and have to use the install and
176 dist-hook: $(tocfiles)
177 for i in $(tocfiles); \
179 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
180 else file="$$i"; fi; \
181 cp -p "$$file" "$(distdir)"; \
183 install-data-hook: $(tocfiles)
184 for i in $(tocfiles); \
186 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
187 else file="$$i"; fi; \
188 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
192 for i in $(tocfiles); \
194 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \