]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Makefile.am
EmbeddedObjects: add ligature breaks, spotted by Hartmut
[lyx.git] / lib / doc / Makefile.am
index 1763430945358c0f8ce5852ca34ea2a76f5311c1..abdb72a26930d7746bef3d3b97956fb97be73a1c 100644 (file)
 include $(top_srcdir)/config/common.am
 
-DISTCLEANFILES += LyXConfig.lyx LaTeXConfig.lyx Makefile.depend
+DISTCLEANFILES += $(tocfiles)
 
-EXTRA_DIST = Depend.pl Doc_toc.pl LaTeXConfig.lyx.in LyXConfig.lyx.in README.Documentation $(docfiles) $(toc_DATA)
+EXTRA_DIST = depend.py doc_toc.py README.Documentation $(DEPENDFILE) $(docfiles)
 
-docfiles = \
-       cs_TOC.lyx \
-       cs_Tutorial.lyx \
+clipartdocdir = $(pkgdatadir)/doc/clipart
+dist_clipartdoc_DATA = \
+       clipart/escher-lsd.eps \
+       clipart/mobius.eps \
+       clipart/platypus.eps \
+       clipart/BoxInsetDefaultQt4.png \
+       clipart/ChildDocumentQt4.png \
+       clipart/CommentNoteImageQt4.png \
+       clipart/endnotes.pdf \
+       clipart/ExternalMaterialQt4.png \
+       clipart/floatQt4.png \
+       clipart/footnoteQt4.png \
+       clipart/FramedNoteImageQt4.png \
+       clipart/GreyedOutNoteImageQt4.png \
+       clipart/labelQt4.png \
+       clipart/LyXNoteImageQt4.png \
+       clipart/referenceQt4.png \
+       clipart/ShadedNoteImageQt4.png \
+       clipart/without_fntright.pdf \
+       clipart/with_fntright.pdf
+
+csdocdir = $(pkgdatadir)/doc/cs
+dist_csdoc_DATA = \
+       cs/Tutorial.lyx
+
+dadocdir = $(pkgdatadir)/doc/da
+dist_dadoc_DATA = \
+       da/Intro.lyx
+
+dedocdir = $(pkgdatadir)/doc/de
+dist_dedoc_DATA = \
+       de/Customization.lyx \
+       de/Extended.lyx \
+       de/FAQ.lyx \
+       de/Intro.lyx \
+       de/Tutorial.lyx \
+       de/UserGuide.lyx
+
+declipartdocdir = $(pkgdatadir)/doc/de/clipart
+dist_declipartdoc_DATA = \
+       de/clipart/FussnoteQt4.png
+
+esdocdir = $(pkgdatadir)/doc/es
+dist_esdoc_DATA = \
+        es/DocumentoPostizo1.lyx \
+        es/DocumentoPostizo2.lyx \
+       es/DocumentoTextoPostizo.txt \
+       es/EmbeddedObjects.lyx \
+       es/Extended.lyx \
+       es/Intro.lyx \
+       es/Tutorial.lyx
+
+esclipartdocdir = $(pkgdatadir)/doc/es/clipart
+dist_esclipartdoc_DATA = \
+       es/clipart/ComentNotaImagenQt4.png \
+       es/clipart/CuadroMinipagQt4.png \
+       es/clipart/DocumentoHijoQt4.png \
+       es/clipart/etiquetaQt4.png \
+       es/clipart/flotanteQt4.png \
+       es/clipart/GrisNotaImagenQt4.png \
+       es/clipart/MaterialExternoQt4.png \
+       es/clipart/NotaEnmarcadaImg.png \
+       es/clipart/NotaLyXImagenQt4.png \
+       es/clipart/notapieQt4.png \
+       es/clipart/NotaSombreadaImg.png \
+       es/clipart/referenciaQt4.png
+
+eudocdir = $(pkgdatadir)/doc/eu
+dist_eudoc_DATA = \
+       eu/Customization.lyx \
+       eu/Extended.lyx \
+       eu/FAQ.lyx \
+       eu/Intro.lyx \
+       eu/Tutorial.lyx \
+       eu/UserGuide.lyx
+
+frdocdir = $(pkgdatadir)/doc/fr
+dist_frdoc_DATA = \
+       fr/Customization.lyx \
+       fr/Extended.lyx \
+       fr/FAQ.lyx \
+       fr/Intro.lyx \
+       fr/Tutorial.lyx \
+       fr/UserGuide.lyx
+
+gldocdir = $(pkgdatadir)/doc/gl
+dist_gldoc_DATA = \
+       gl/Intro.lyx \
+       gl/Tutorial.lyx
+
+hedocdir = $(pkgdatadir)/doc/he
+dist_hedoc_DATA = \
+       he/Intro.lyx \
+       he/Tutorial.lyx
+
+hudocdir = $(pkgdatadir)/doc/hu
+dist_hudoc_DATA = \
+       hu/Intro.lyx \
+       hu/Tutorial.lyx
+
+itdocdir = $(pkgdatadir)/doc/it
+dist_itdoc_DATA = \
+       it/Customization.lyx \
+       it/Intro.lyx \
+       it/Tutorial.lyx \
+       it/UserGuide.lyx
+
+nldocdir = $(pkgdatadir)/doc/nl
+dist_nldoc_DATA = \
+       nl/Intro.lyx \
+       nl/Tutorial.lyx
+
+nbdocdir = $(pkgdatadir)/doc/nb
+dist_nbdoc_DATA = \
+       nb/Intro.lyx
+
+pldocdir = $(pkgdatadir)/doc/pl
+dist_pldoc_DATA = \
+       pl/Extended.lyx \
+       pl/Intro.lyx \
+       pl/Tutorial.lyx
+
+ptdocdir = $(pkgdatadir)/doc/pt
+dist_ptdoc_DATA = \
+       pt/Intro.lyx \
+       pt/Tutorial.lyx
+
+rodocdir = $(pkgdatadir)/doc/ro
+dist_rodoc_DATA = \
+       ro/Intro.lyx
+
+rudocdir = $(pkgdatadir)/doc/ru
+dist_rudoc_DATA = \
+       ru/FAQ.lyx \
+       ru/Intro.lyx \
+       ru/Tutorial.lyx
+
+skdocdir = $(pkgdatadir)/doc/sk
+dist_skdoc_DATA = \
+       sk/Tutorial.lyx \
+       sk/UserGuide.lyx
+
+sldocdir = $(pkgdatadir)/doc/sl
+dist_sldoc_DATA = \
+       sl/Intro.lyx \
+       sl/Tutorial.lyx
+
+svdocdir = $(pkgdatadir)/doc/sv
+dist_svdoc_DATA = \
+       sv/Intro.lyx \
+       sv/Tutorial.lyx
+
+docdir = $(pkgdatadir)/doc
+dist_doc_DATA = \
        Customization.lyx \
-       da_Intro.lyx \
-       da_TOC.lyx \
-       de_Customization.lyx \
-       de_Extended.lyx \
-       de_FAQ.lyx \
-       de_Intro.lyx \
-       de_TOC.lyx \
-       de_Tutorial.lyx \
-       de_UserGuide.lyx \
        DocStyle.lyx \
-       es_Intro.lyx \
-       es_TOC.lyx \
-       es_Tutorial.lyx \
-       eu_Customization.lyx \
-       eu_Extended.lyx \
-       eu_FAQ.lyx \
-       eu_Intro.lyx \
-       eu_TOC.lyx \
-       eu_Tutorial.lyx \
-       eu_UserGuide.lyx \
+       DummyTextDocument.txt \
+       DummyDocument1.lyx \
+       DummyDocument2.lyx \
+       EmbeddedObjects.lyx \
        Extended.lyx \
        FAQ.lyx \
-       fr_Customization.lyx \
-       fr_Extended.lyx \
-       fr_FAQ.lyx \
-       fr_Intro.lyx \
-       fr_TOC.lyx \
-       fr_Tutorial.lyx \
-       fr_UserGuide.lyx \
-       he_Intro.lyx \
-       he_TOC.lyx \
-       he_Tutorial.lyx \
-       hu_Intro.lyx \
-       hu_TOC.lyx \
        Intro.lyx \
-       it_Customization.lyx \
-       it_Intro.lyx \
-       it_TOC.lyx \
-       it_Tutorial.lyx \
-       it_UserGuide.lyx \
-       nl_Intro.lyx \
-       nl_TOC.lyx \
-       nl_Tutorial.lyx \
-       no_Intro.lyx \
-       no_TOC.lyx \
-       pl_Extended.lyx \
-       pl_Intro.lyx \
-       pl_TOC.lyx \
-       pl_Tutorial.lyx \
-       pt_Intro.lyx \
-       pt_TOC.lyx \
-       pt_Tutorial.lyx \
+       LaTeXConfig.lyx.in \
        Reference.lyx \
-       ro_Intro.lyx \
-       ro_TOC.lyx \
-       ru_FAQ.lyx \
-       ru_Intro.lyx \
-       ru_TOC.lyx \
-       ru_Tutorial.lyx \
-       sk_TOC.lyx \
-       sk_Tutorial.lyx \
-       sk_UserGuide.lyx \
-       sl_Intro.lyx \
-       sl_TOC.lyx \
-       sl_Tutorial.lyx \
-       sv_Intro.lyx \
-       sv_TOC.lyx \
-       sv_Tutorial.lyx \
-       TOC.lyx \
        Tutorial.lyx \
-       UserGuide.lyx \
-       escher-lsd.eps \
-       mobius.eps \
-       platypus.eps
-
-docdir = $(pkgdatadir)/doc
-doc_DATA = \
-       $(docfiles) \
-       LaTeXConfig.lyx
+       UserGuide.lyx
 
-tocdir = $(docdir)/TOC_top
-toc_DATA = \
-       TOC_top/da_TOC_top.lyx \
-       TOC_top/de_TOC_top.lyx \
-       TOC_top/fr_TOC_top.lyx \
-       TOC_top/ru_TOC_top.lyx \
-       TOC_top/sl_TOC_top.lyx \
-       TOC_top/TOC_top.lyx
+doc_DATA = $(docfiles) 
 
+DEPENDFILE = $(srcdir)/Makefile.depend
+# include $(DEPENDFILE) does not work because automake is too limited.
+include $(srcdir)/Makefile.depend
 
-# TODO can we instead just #include the DEPENDFILE in this Makefile?
-# problem with this is that the DEPENDFILE that's included won't be the updated
-# one. JMarc should know how to handle this.
+TOCs : $(DEPENDFILE) $(tocfiles)
+       @echo Made TOCs succesfully.
 
-DEPENDFILE = Makefile.depend
+# Force regeneration of $(DEPENDFILE) when Makefile.am changes because
+# new doc files might have been added
+$(DEPENDFILE): $(srcdir)/Makefile.am $(srcdir)/depend.py
+       python $(srcdir)/depend.py > $(DEPENDFILE)
 
-TOCs : depend
-       make -f $(DEPENDFILE) TOCs
+# The TOCs are not built for the install and dist targets if they don't exist
+# for some weird reason.
+# Make complains although we have rules for them in $(DEPENDFILE), so we
+# must not include the TOCs in $(docfiles) and have to use the install and
+# dist hooks below.
+dist-hook: $(tocfiles)
+       for i in $(tocfiles); \
+       do \
+               if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
+               else file="$$i"; fi; \
+               cp -p "$$file" "$(distdir)"; \
+       done
+install-data-hook: $(tocfiles)
+       for i in $(tocfiles); \
+       do \
+               if test -f "$(srcdir)/$$i"; then file="$(srcdir)/$$i"; \
+               else file="$$i"; fi; \
+               $(docDATA_INSTALL) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
+       done
 
-depend:
-       perl Depend.pl > $(DEPENDFILE)
+uninstall-local:
+       for i in $(tocfiles); \
+       do \
+               $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
+       done
 
-.PHONY: depend
+.PHONY: TOCs