]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Makefile.am
an example for the sweave module, prepared by Gregor Gorjanc
[lyx.git] / lib / doc / Makefile.am
index 420d471fa883dca419652bb8697cc05ad2b7e024..bd505d94a80f0eaab0f73df1759da2f6bc1880f7 100644 (file)
@@ -1,8 +1,6 @@
 include $(top_srcdir)/config/common.am
 
-DISTCLEANFILES += $(tocfiles)
-
-EXTRA_DIST = depend.py doc_toc.py README.Documentation $(DEPENDFILE)
+EXTRA_DIST = README.Documentation
 
 docdir = $(pkgdatadir)/doc
 dist_doc_DATA = \
@@ -13,7 +11,6 @@ dist_doc_DATA = \
        DummyDocument2.lyx \
        EmbeddedObjects.lyx \
        Extended.lyx \
-       FAQ.lyx \
        Formula-numbering.lyx \
        Intro.lyx \
        LaTeXConfig.lyx \
@@ -49,6 +46,7 @@ dist_clipartdoc_DATA = \
        clipart/LaTeX.png \
        clipart/LyXNoteImageQt4.png \
        clipart/macrobox.png \
+       clipart/MacroToolbar.png \
        clipart/macrouse.png \
        clipart/mbox.png \
        clipart/referenceQt4.png \
@@ -79,7 +77,6 @@ dist_dedoc_DATA = \
        de/DummyTextDocument.txt \
        de/EmbeddedObjects.lyx \
        de/Extended.lyx \
-       de/FAQ.lyx \
        de/Formelnummerierung.lyx \
        de/Intro.lyx \
        de/Math.lyx \
@@ -103,15 +100,16 @@ dist_declipartdoc_DATA = \
 
 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/FAQ.lyx \
        es/Formula-numbering.lyx \
        es/Intro.lyx \
        es/Math.lyx \
+       es/Shortcuts.lyx \
        es/Tutorial.lyx \
        es/UserGuide.lyx
 
@@ -121,7 +119,7 @@ dist_esclipartdoc_DATA = \
        es/clipart/CuadroMinipagQt4.png \
        es/clipart/DocumentoHijoQt4.png \
        es/clipart/es_ERT.png \
-       es/clipart/es_ToolbarEnvBox.png
+       es/clipart/es_ToolbarEnvBox.png \
        es/clipart/etiquetaQt4.png \
        es/clipart/flotanteQt4.png \
        es/clipart/GrisNotaImagenQt4.png \
@@ -135,7 +133,6 @@ eudocdir = $(docdir)/eu
 dist_eudoc_DATA = \
        eu/Customization.lyx \
        eu/Extended.lyx \
-       eu/FAQ.lyx \
        eu/Intro.lyx \
        eu/Tutorial.lyx \
        eu/UserGuide.lyx
@@ -148,10 +145,10 @@ dist_frdoc_DATA = \
        fr/DocumentTexteBidon.txt \
        fr/EmbeddedObjects.lyx \
        fr/Extended.lyx \
-       fr/FAQ.lyx \
        fr/Formula-numbering.lyx \
        fr/Intro.lyx \
        fr/Math.lyx \
+       fr/Shortcuts.lyx \
        fr/Tutorial.lyx \
        fr/UserGuide.lyx
 
@@ -181,6 +178,17 @@ dist_hudoc_DATA = \
        hu/Intro.lyx \
        hu/Tutorial.lyx
 
+iddocdir = $(docdir)/id
+dist_iddoc_DATA = \
+       id/Intro.lyx \
+       id/Tutorial.lyx
+
+idclipartdocdir = $(iddocdir)/clipart
+dist_idclipartdoc_DATA = \
+       id/clipart/id-contrib.png \
+       id/clipart/id-footnote.png \
+       id/clipart/id-lingkungan.png
+
 itdocdir = $(docdir)/it
 dist_itdoc_DATA = \
        it/Customization.lyx \
@@ -195,7 +203,7 @@ dist_itclipartdoc_DATA = \
 
 jadocdir = $(docdir)/ja
 dist_jadoc_DATA = \
-       ja/FAQ.lyx \
+       ja/Extended.lyx \
        ja/Intro.lyx \
        ja/LaTeXConfig.lyx \
        ja/Shortcuts.lyx \
@@ -236,7 +244,6 @@ dist_rodoc_DATA = \
 
 rudocdir = $(docdir)/ru
 dist_rudoc_DATA = \
-       ru/FAQ.lyx \
        ru/Intro.lyx \
        ru/Tutorial.lyx
 
@@ -288,37 +295,7 @@ doc_files = \
            $(dist_svdoc_DATA) \
            $(dist_ukdoc_DATA)
 
-DEPENDFILE = $(srcdir)/Makefile.depend
-# include $(DEPENDFILE) does not work because automake is too limited.
-include $(srcdir)/Makefile.depend
-
-TOCs : $(DEPENDFILE) $(tocfiles)
-       @echo Made TOCs succesfully.
-
-# 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)
-
-# 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; \
-               $(INSTALL_DATA) "$$file" "$(DESTDIR)$(docdir)/$$i"; \
-       done
+install-data-hook:
        for i in $(doc_files); \
        do \
                if $(EGREP) -q "LYX_DIR_VER|LYX_USERDIR_VER" "$(DESTDIR)$(docdir)/$$i"; then \
@@ -329,11 +306,3 @@ install-data-hook: $(tocfiles)
                        chmod 644 "$(DESTDIR)$(docdir)/$$i"; \
                fi; \
        done
-
-uninstall-local:
-       for i in $(tocfiles); \
-       do \
-               $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
-       done
-
-.PHONY: TOCs