include $(top_srcdir)/config/common.am
-DISTCLEANFILES += LyXConfig.lyx LaTeXConfig.lyx Makefile.depend
+EXTRA_DIST = README.Documentation
-EXTRA_DIST = Depend.pl Doc_toc.pl LyXConfig.lyx.in README.Documentation $(docfiles) $(toc_DATA)
-
-docfiles = \
- cs_TOC.lyx \
- cs_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 \
+ Formula-numbering.lyx \
Intro.lyx \
- it_Customization.lyx \
- it_Intro.lyx \
- it_TOC.lyx \
- it_Tutorial.lyx \
- it_UserGuide.lyx \
- LaTeXConfig.lyx.in \
- 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 \
- 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 \
+ LaTeXConfig.lyx \
+ LFUNs.lyx \
+ Math.lyx \
+ Shortcuts.lyx \
Tutorial.lyx \
- UserGuide.lyx \
- escher-lsd.eps \
- mobius.eps \
- platypus.eps
+ UserGuide.lyx
-docdir = $(pkgdatadir)/doc
-doc_DATA = \
- $(docfiles) \
- LaTeXConfig.lyx
+bibliodocdir = $(docdir)/biblio
+dist_bibliodoc_DATA = \
+ biblio/alphadin.bst \
+ biblio/LyXDocs.bib
+
+clipartdocdir = $(docdir)/clipart
+dist_clipartdoc_DATA = \
+ clipart/escher-lsd.eps \
+ clipart/mobius.eps \
+ clipart/platypus.eps \
+ clipart/Abstract.pdf \
+ clipart/BoxInsetDefaultQt4.png \
+ clipart/ChangesToolbar.png \
+ clipart/ChildDocumentQt4.png \
+ clipart/CommentNoteImageQt4.png \
+ clipart/endnotes.pdf \
+ clipart/ERT.png \
+ clipart/ExternalMaterialQt4.png \
+ clipart/ExtraToolbar.png \
+ clipart/floatQt4.png \
+ clipart/footnoteQt4.png \
+ clipart/GreyedOutNoteImageQt4.png \
+ clipart/labelQt4.png \
+ clipart/LaTeX.png \
+ clipart/LyXNoteImageQt4.png \
+ clipart/macrobox.png \
+ clipart/MacroToolbar.png \
+ clipart/macrouse.png \
+ clipart/mbox.png \
+ clipart/referenceQt4.png \
+ clipart/SpaceMarker.png \
+ clipart/StandardToolbar.png \
+ clipart/ToolbarEnvBox.png \
+ clipart/ViewToolbar.png \
+ clipart/without_fntright.pdf \
+ clipart/with_fntright.pdf
+
+cadocdir = $(docdir)/ca
+dist_cadoc_DATA = \
+ ca/Intro.lyx
+
+csdocdir = $(docdir)/cs
+dist_csdoc_DATA = \
+ cs/Tutorial.lyx
+
+dadocdir = $(docdir)/da
+dist_dadoc_DATA = \
+ da/Intro.lyx
+
+dedocdir = $(docdir)/de
+dist_dedoc_DATA = \
+ de/Customization.lyx \
+ de/DummyDocument1.lyx \
+ de/DummyDocument2.lyx \
+ de/DummyTextDocument.txt \
+ de/EmbeddedObjects.lyx \
+ de/Extended.lyx \
+ de/Formelnummerierung.lyx \
+ de/Intro.lyx \
+ de/Math.lyx \
+ de/Shortcuts.lyx \
+ de/Tutorial.lyx \
+ de/UserGuide.lyx
+
+declipartdocdir = $(dedocdir)/clipart
+dist_declipartdoc_DATA = \
+ de/clipart/ERT.png \
+ de/clipart/ExternesMaterialQt4.png \
+ de/clipart/FussnoteQt4.png \
+ de/clipart/GleitobjektQt4.png \
+ de/clipart/GrauschriftNotizQt4.png \
+ de/clipart/KommentarQt4.png \
+ de/clipart/LyXNotizQt4.png \
+ de/clipart/Marke.png \
+ de/clipart/Querverweis.png \
+ de/clipart/StandardBoxQt4.png \
+ de/clipart/UnterdokumentQt4.png
+
+esdocdir = $(docdir)/es
+dist_esdoc_DATA = \
+ es/Customization.lyx \
+ es/DocumentoPostizo1.lyx \
+ es/DocumentoPostizo2.lyx \
+ es/DocumentoTextoPostizo.txt \
+ es/EmbeddedObjects.lyx \
+ es/Extended.lyx \
+ es/Formula-numbering.lyx \
+ es/Intro.lyx \
+ es/Math.lyx \
+ es/Shortcuts.lyx \
+ es/Tutorial.lyx \
+ es/UserGuide.lyx
+
+esclipartdocdir = $(esdocdir)/clipart
+dist_esclipartdoc_DATA = \
+ es/clipart/ComentNotaImagenQt4.png \
+ es/clipart/CuadroMinipagQt4.png \
+ es/clipart/DocumentoHijoQt4.png \
+ es/clipart/es_ERT.png \
+ es/clipart/es_ToolbarEnvBox.png \
+ es/clipart/etiquetaQt4.png \
+ es/clipart/flotanteQt4.png \
+ es/clipart/GrisNotaImagenQt4.png \
+ es/clipart/MaterialExternoQt4.png \
+ es/clipart/NotaLyXImagenQt4.png \
+ es/clipart/notapieQt4.png \
+ es/clipart/referenciaQt4.png \
+ es/clipart/Resumen.pdf
+
+eudocdir = $(docdir)/eu
+dist_eudoc_DATA = \
+ eu/Customization.lyx \
+ eu/Extended.lyx \
+ eu/Intro.lyx \
+ eu/Tutorial.lyx \
+ eu/UserGuide.lyx
+
+frdocdir = $(docdir)/fr
+dist_frdoc_DATA = \
+ fr/Customization.lyx \
+ fr/DocumentBidon1.lyx \
+ fr/DocumentBidon2.lyx \
+ fr/DocumentTexteBidon.txt \
+ fr/EmbeddedObjects.lyx \
+ fr/Extended.lyx \
+ fr/Formula-numbering.lyx \
+ fr/Intro.lyx \
+ fr/Math.lyx \
+ fr/Tutorial.lyx \
+ fr/UserGuide.lyx
+
+frclipartdocdir = $(frdocdir)/clipart
+dist_frclipartdoc_DATA = \
+ fr/clipart/BoxInsetDefaultQt4.png \
+ fr/clipart/ChildDocumentQt4.png \
+ fr/clipart/CommentNoteImageQt4.png \
+ fr/clipart/GreyedOutNoteImageQt4.png \
+ fr/clipart/LyXNoteImageQt4.png \
+ fr/clipart/floatQt4.png \
+ fr/clipart/footnoteQt4.png \
+ fr/clipart/labelQt4.png
+
+gldocdir = $(docdir)/gl
+dist_gldoc_DATA = \
+ gl/Intro.lyx \
+ gl/Tutorial.lyx
+
+hedocdir = $(docdir)/he
+dist_hedoc_DATA = \
+ he/Intro.lyx \
+ he/Tutorial.lyx
+
+hudocdir = $(docdir)/hu
+dist_hudoc_DATA = \
+ hu/Intro.lyx \
+ hu/Tutorial.lyx
+
+itdocdir = $(docdir)/it
+dist_itdoc_DATA = \
+ it/Customization.lyx \
+ it/Intro.lyx \
+ it/Tutorial.lyx \
+ it/UserGuide.lyx
+
+itclipartdocdir = $(itdocdir)/clipart
+dist_itclipartdoc_DATA = \
+ it/clipart/it_footnoteQt4.png \
+ it/clipart/it_referenceQt4.png
+
+jadocdir = $(docdir)/ja
+dist_jadoc_DATA = \
+ ja/Extended.lyx \
+ ja/Intro.lyx \
+ ja/LaTeXConfig.lyx \
+ ja/Shortcuts.lyx \
+ ja/Tutorial.lyx \
+ ja/UserGuide.lyx
+
+jaclipartdocdir = $(jadocdir)/clipart
+dist_jaclipartdoc_DATA = \
+ ja/clipart/ERT.png \
+ ja/clipart/floatQt4.png \
+ ja/clipart/footnoteQt4.png \
+ ja/clipart/referenceQt4.png \
+ ja/clipart/ToolbarEnvBox.png
+
+nldocdir = $(docdir)/nl
+dist_nldoc_DATA = \
+ nl/Intro.lyx \
+ nl/Tutorial.lyx
+
+nbdocdir = $(docdir)/nb
+dist_nbdoc_DATA = \
+ nb/Intro.lyx
+
+pldocdir = $(docdir)/pl
+dist_pldoc_DATA = \
+ pl/Extended.lyx \
+ pl/Intro.lyx \
+ pl/Tutorial.lyx
+
+ptdocdir = $(docdir)/pt
+dist_ptdoc_DATA = \
+ pt/Intro.lyx \
+ pt/Tutorial.lyx
+
+rodocdir = $(docdir)/ro
+dist_rodoc_DATA = \
+ ro/Intro.lyx
+
+rudocdir = $(docdir)/ru
+dist_rudoc_DATA = \
+ ru/Intro.lyx \
+ ru/Tutorial.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
+skdocdir = $(docdir)/sk
+dist_skdoc_DATA = \
+ sk/Tutorial.lyx \
+ sk/UserGuide.lyx
+sldocdir = $(docdir)/sl
+dist_sldoc_DATA = \
+ sl/Intro.lyx \
+ sl/Tutorial.lyx
-# 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.
+svdocdir = $(docdir)/sv
+dist_svdoc_DATA = \
+ sv/Intro.lyx \
+ sv/Tutorial.lyx
-DEPENDFILE = Makefile.depend
+ukdocdir = $(docdir)/uk
+dist_ukdoc_DATA = \
+ uk/Intro.lyx
-TOCs : depend
- make -f $(DEPENDFILE) TOCs
+ukclipartdocdir = $(ukdocdir)/clipart
+dist_ukclipartdoc_DATA = \
+ uk/clipart/FootnoteQT4.png
-depend:
- perl Depend.pl > $(DEPENDFILE)
+doc_files = \
+ $(dist_doc_DATA) \
+ $(dist_cadoc_DATA) \
+ $(dist_csdoc_DATA) \
+ $(dist_dadoc_DATA) \
+ $(dist_dedoc_DATA) \
+ $(dist_esdoc_DATA) \
+ $(dist_eudoc_DATA) \
+ $(dist_frdoc_DATA) \
+ $(dist_gldoc_DATA) \
+ $(dist_hedoc_DATA) \
+ $(dist_hudoc_DATA) \
+ $(dist_itdoc_DATA) \
+ $(dist_jadoc_DATA) \
+ $(dist_nbdoc_DATA) \
+ $(dist_nldoc_DATA) \
+ $(dist_pldoc_DATA) \
+ $(dist_ptdoc_DATA) \
+ $(dist_rodoc_DATA) \
+ $(dist_rudoc_DATA) \
+ $(dist_skdoc_DATA) \
+ $(dist_sldoc_DATA) \
+ $(dist_svdoc_DATA) \
+ $(dist_ukdoc_DATA)
-.PHONY: depend
+install-data-hook:
+ for i in $(doc_files); \
+ do \
+ if $(EGREP) -q "LYX_DIR_VER|LYX_USERDIR_VER" "$(DESTDIR)$(docdir)/$$i"; then \
+ sed -e "s/LYX_DIR_VER/$(LYX_DIR_VER)/g" \
+ -e "s/LYX_USERDIR_VER/$(LYX_USERDIR_VER)/g" \
+ "$(DESTDIR)$(docdir)/$$i" > "$(DESTDIR)$(docdir)/$$i.tmp"; \
+ mv -f "$(DESTDIR)$(docdir)/$$i.tmp" "$(DESTDIR)$(docdir)/$$i"; \
+ chmod 644 "$(DESTDIR)$(docdir)/$$i"; \
+ fi; \
+ done