]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Makefile.am
Japanese Tutorial.lyx: update by Koji
[lyx.git] / lib / doc / Makefile.am
index cff21e31df5a0970f64f3ae27c233515f7c9c3ec..6ad7954abafd31f5993b8e512eabfe950c11e2b5 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 = \
@@ -48,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 \
@@ -101,6 +100,7 @@ dist_declipartdoc_DATA = \
 
 esdocdir = $(docdir)/es
 dist_esdoc_DATA = \
+       es/Customization.lyx \
        es/DocumentoPostizo1.lyx \
        es/DocumentoPostizo2.lyx \
        es/DocumentoTextoPostizo.txt \
@@ -191,6 +191,7 @@ dist_itclipartdoc_DATA = \
 
 jadocdir = $(docdir)/ja
 dist_jadoc_DATA = \
+       ja/Extended.lyx \
        ja/Intro.lyx \
        ja/LaTeXConfig.lyx \
        ja/Shortcuts.lyx \
@@ -282,37 +283,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 \
@@ -323,11 +294,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