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
12 BoxInsetDefaultQt4.png \
13 CommentNoteImageQt4.png \
17 FramedNoteImageQt4.png \
18 GreyedOutNoteImageQt4.png \
22 ShadedNoteImageQt4.png \
23 without_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
49 esdocdir = $(pkgdatadir)/doc/es/clipart
51 ComentNotaImagenQt4.png \
52 CuadroMinipagQt4.png \
55 GrisNotaImagenQt4.png \
56 NotaEnmarcadaImg.png \
57 NotaLyXImagenQt4.png \
59 NotaSombreadaImg.png \
62 eudocdir = $(pkgdatadir)/doc/eu
64 eu/Customization.lyx \
71 frdocdir = $(pkgdatadir)/doc/fr
73 fr/Customization.lyx \
80 gldocdir = $(pkgdatadir)/doc/gl
85 hedocdir = $(pkgdatadir)/doc/he
90 hudocdir = $(pkgdatadir)/doc/hu
95 itdocdir = $(pkgdatadir)/doc/it
97 it/Customization.lyx \
102 nldocdir = $(pkgdatadir)/doc/nl
107 nbdocdir = $(pkgdatadir)/doc/nb
111 pldocdir = $(pkgdatadir)/doc/pl
117 ptdocdir = $(pkgdatadir)/doc/pt
122 rodocdir = $(pkgdatadir)/doc/ro
126 rudocdir = $(pkgdatadir)/doc/ru
132 skdocdir = $(pkgdatadir)/doc/sk
137 sldocdir = $(pkgdatadir)/doc/sl
142 svdocdir = $(pkgdatadir)/doc/sv
147 docdir = $(pkgdatadir)/doc
151 EmbeddedObjects.lyx \
160 doc_DATA = $(docfiles)
162 DEPENDFILE = $(srcdir)/Makefile.depend
163 # include $(DEPENDFILE) does not work because automake is too limited.
164 include $(srcdir)/Makefile.depend
166 TOCs : $(DEPENDFILE) $(tocfiles)
167 @echo Made TOCs succesfully.
169 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
170 # new doc files might have been added
171 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
172 python $(srcdir)/depend.py > $(DEPENDFILE)
174 # The TOCs are not built for the install and dist targets if they don't exist
175 # for some weird reason.
176 # Make complains although we have rules for them in $(DEPENDFILE), so we
177 # must not include the TOCs in $(docfiles) and have to use the install and
179 dist-hook: $(tocfiles)
180 for i in $(tocfiles); \
182 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
183 else file="$$i"; fi; \
184 cp -p "$$file" "$(distdir)"; \
186 install-data-hook: $(tocfiles)
187 for i in $(tocfiles); \
189 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
190 else file="$$i"; fi; \
191 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
195 for i in $(tocfiles); \
197 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \