summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am118
1 files changed, 118 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..c2914d0
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,118 @@
+####### kdevelop will overwrite this part!!! (begin)##########
+
+
+EXTRA_DIST = help_en.docbook help_fr.docbook
+
+####### kdevelop will overwrite this part!!! (end)############
+
+MAINTAINERCLEANFILES = ./*.html
+CLEANFILES = core *~ .deps/* doc/*~ *.orig changes.docbook
+DISTCLEANFILES = Makefile.in Makefile
+
+LANGUAGES = en fr de et it fi es ru
+SUFFIXES = .docbook .po .pot
+SGMLDIR=$(kde_datadir)/ksgmltools2
+DOCDIR = $(DESTDIR)${kde_htmldir}
+XML2POT = xml2pot
+PO2XML = po2xml
+MSGMERGE = msgmerge
+
+
+help_en.pot: help_en.docbook
+ $(XML2POT) help_en.docbook > help_en.pot
+
+# --- translated docbook online help ---
+
+help_fr.po: help_en.pot
+ $(MSGMERGE) -o help_fr.po help_fr.po help_en.pot
+
+help_fr.docbook: help_en.docbook help_en.pot
+ ${MAKE} help_fr.po
+ @echo "converting french help"
+ @ $(PO2XML) help_en.docbook help_fr.po | \
+ sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ French\ /g \
+ > help_fr.docbook
+
+help_de.po: help_en.pot
+ $(MSGMERGE) -o help_de.po help_de.po help_en.pot
+
+help_de.docbook: help_en.docbook help_en.pot
+ ${MAKE} help_de.po
+ @echo "converting german help"
+ @ $(PO2XML) help_en.docbook help_de.po | \
+ sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ German\ /g \
+ > help_de.docbook
+
+help_et.po: help_en.pot
+ $(MSGMERGE) -o help_et.po help_et.po help_en.pot
+
+help_et.docbook: help_en.docbook help_en.pot
+ ${MAKE} help_et.po
+ @echo "converting estonian help"
+ @ $(PO2XML) help_en.docbook help_et.po | \
+ sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Estonian\ /g \
+ > help_de.docbook
+
+help_it.po: help_en.pot
+ $(MSGMERGE) -o help_it.po help_it.po help_en.pot
+
+help_it.docbook: help_en.docbook help_en.pot
+ ${MAKE} help_it.po
+ @echo "converting italian help"
+ @ $(PO2XML) help_en.docbook help_it.po | \
+ sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Italian\ /g \
+ > help_it.docbook
+
+help_fi.po: help_en.pot
+ $(MSGMERGE) -o help_fi.po help_fi.po help_en.pot
+
+help_fi.docbook: help_en.docbook help_en.pot
+ ${MAKE} help_fi.po
+ @echo "converting finnish help"
+ @ $(PO2XML) help_en.docbook help_fi.po | \
+ sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Finnish\ /g \
+ > help_fi.docbook
+
+help_es.po: help_en.pot
+ $(MSGMERGE) -o help_es.po help_es.po help_en.pot
+
+help_es.docbook: help_en.docbook help_en.pot
+ ${MAKE} help_es.po
+ @echo "converting spanish help"
+ @ $(PO2XML) help_en.docbook help_es.po | \
+ sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Spanish\ /g \
+ > help_es.docbook
+
+help_ru.po: help_en.pot
+ $(MSGMERGE) -o help_ru.po help_ru.po help_en.pot
+
+help_ru.docbook: help_en.docbook help_en.pot
+ ${MAKE} help_ru.po
+ @echo "converting russian help"
+ @ $(PO2XML) help_en.docbook help_ru.po | \
+ sed s/^\ \ \<\!ENTITY\ %\ English\ /\ \ \<\!ENTITY\ %\ Russian\ /g \
+ > help_ru.docbook
+
+# --- ---
+
+install-data-local:
+ echo installing docs in $(DOCDIR)
+ for lang in ${LANGUAGES}; do \
+ { \
+ $(mkinstalldirs) ${DOCDIR}/$${lang}/$(PACKAGE); \
+ $(INSTALL_DATA) help_$${lang}.docbook ${DOCDIR}/$${lang}/$(PACKAGE)/index.docbook; \
+ if test ! -e ${DOCDIR}/$${lang}/$(PACKAGE)/common ; then \
+ rm -f ${DOCDIR}/$${lang}/$(PACKAGE)/common ; fi ; \
+ ( cd ${DOCDIR}/$${lang}/${PACKAGE} ; ln -sf ../common . ) ; \
+ }; done
+ cd ${DOCDIR} ; \
+ if test ! -e default/$(PACKAGE) -a -e default ; then ln -sf ../en/$(PACKAGE) default; fi;
+
+uninstall-local:
+ for lang in ${LANGUAGES}; do { \
+ rm -R -f ${DOCDIR}/$${lang}/${PACKAGE} ; \
+ rmdir -p --ignore-fail-on-non-empty $(DOCDIR)/$$lang >/dev/null 2>&1; \
+ if test -L ${DOCDIR}/default/$(PACKAGE); then rm -f ${DOCDIR}/default/$(PACKAGE); fi; \
+ }; done
+
+all: