1 include $(top_srcdir)/config/common.am
3 DISTCLEANFILES += $(tocfiles)
5 EXTRA_DIST = depend.py doc_toc.py README.Documentation $(DEPENDFILE) $(docfiles)
7 csdocdir = $(pkgdatadir)/doc/cs
11 dadocdir = $(pkgdatadir)/doc/da
15 dedocdir = $(pkgdatadir)/doc/de
17 de/Customization.lyx \
24 esdocdir = $(pkgdatadir)/doc/es
28 es/EmbeddedObjects.lyx
30 eudocdir = $(pkgdatadir)/doc/eu
32 eu/Customization.lyx \
39 frdocdir = $(pkgdatadir)/doc/fr
41 fr/Customization.lyx \
48 gldocdir = $(pkgdatadir)/doc/gl
53 hedocdir = $(pkgdatadir)/doc/he
58 hudocdir = $(pkgdatadir)/doc/hu
63 itdocdir = $(pkgdatadir)/doc/it
65 it/Customization.lyx \
70 nldocdir = $(pkgdatadir)/doc/nl
75 nbdocdir = $(pkgdatadir)/doc/nb
79 pldocdir = $(pkgdatadir)/doc/pl
85 ptdocdir = $(pkgdatadir)/doc/pt
90 rodocdir = $(pkgdatadir)/doc/ro
94 rudocdir = $(pkgdatadir)/doc/ru
100 skdocdir = $(pkgdatadir)/doc/sk
105 sldocdir = $(pkgdatadir)/doc/sl
110 svdocdir = $(pkgdatadir)/doc/sv
115 docdir = $(pkgdatadir)/doc
119 EmbeddedObjects.lyx \
131 doc_DATA = $(docfiles)
133 DEPENDFILE = $(srcdir)/Makefile.depend
134 # include $(DEPENDFILE) does not work because automake is too limited.
135 include $(srcdir)/Makefile.depend
137 TOCs : $(DEPENDFILE) $(tocfiles)
138 @echo Made TOCs succesfully.
140 # Force regeneration of $(DEPENDFILE) when Makefile.am changes because
141 # new doc files might have been added
142 $(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
143 python $(srcdir)/depend.py > $(DEPENDFILE)
145 # The TOCs are not built for the install and dist targets if they don't exist
146 # for some weird reason.
147 # Make complains although we have rules for them in $(DEPENDFILE), so we
148 # must not include the TOCs in $(docfiles) and have to use the install and
150 dist-hook: $(tocfiles)
151 for i in $(tocfiles); \
153 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
154 else file="$$i"; fi; \
155 cp -p "$$file" "$(distdir)"; \
157 install-data-hook: $(tocfiles)
158 for i in $(tocfiles); \
160 if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
161 else file="$$i"; fi; \
162 $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
166 for i in $(tocfiles); \
168 $(RM) "$(DESTDIR)$(docdir)/$$i" ; \