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 = \
DummyDocument2.lyx \
EmbeddedObjects.lyx \
Extended.lyx \
- FAQ.lyx \
Formula-numbering.lyx \
Intro.lyx \
LaTeXConfig.lyx \
clipart/LaTeX.png \
clipart/LyXNoteImageQt4.png \
clipart/macrobox.png \
+ clipart/MacroToolbar.png \
clipart/macrouse.png \
clipart/mbox.png \
clipart/referenceQt4.png \
de/DummyTextDocument.txt \
de/EmbeddedObjects.lyx \
de/Extended.lyx \
- de/FAQ.lyx \
de/Formelnummerierung.lyx \
de/Intro.lyx \
de/Math.lyx \
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 \
dist_eudoc_DATA = \
eu/Customization.lyx \
eu/Extended.lyx \
- eu/FAQ.lyx \
eu/Intro.lyx \
eu/Tutorial.lyx \
eu/UserGuide.lyx
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
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 \
jadocdir = $(docdir)/ja
dist_jadoc_DATA = \
- ja/FAQ.lyx \
+ ja/Extended.lyx \
ja/Intro.lyx \
ja/LaTeXConfig.lyx \
ja/Shortcuts.lyx \
rudocdir = $(docdir)/ru
dist_rudoc_DATA = \
- ru/FAQ.lyx \
ru/Intro.lyx \
ru/Tutorial.lyx
$(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 \
chmod 644 "$(DESTDIR)$(docdir)/$$i"; \
fi; \
done
-
-uninstall-local:
- for i in $(tocfiles); \
- do \
- $(RM) "$(DESTDIR)$(docdir)/$$i" ; \
- done
-
-.PHONY: TOCs