-docdir = $(pkgdatadir)/doc
-dist_doc_DATA = \
- Customization.lyx \
- DocStyle.lyx \
- DummyTextDocument.txt \
- DummyDocument1.lyx \
- DummyDocument2.lyx \
- EmbeddedObjects.lyx \
- Extended.lyx \
- FAQ.lyx \
- Intro.lyx \
- LaTeXConfig.lyx \
- Reference.lyx \
- Shortcuts.lyx \
- Tutorial.lyx \
- UserGuide.lyx
-
-doc_DATA = $(docfiles)
-
-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); \
+ukdocdir = $(docdir)/uk
+dist_ukdoc_DATA = \
+ uk/Intro.lyx
+
+ukclipartdocdir = $(ukdocdir)/clipart
+dist_ukclipartdoc_DATA = \
+ uk/clipart/FootnoteQT4.png
+
+zhCNdocdir = $(docdir)/zh_CN
+dist_zhCNdoc_DATA = \
+ zh_CN/Intro.lyx \
+ zh_CN/Tutorial.lyx
+
+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) \
+ $(dist_zhCNdoc_DATA)
+
+install-data-hook:
+ for i in $(doc_files); \