summaryrefslogtreecommitdiff
path: root/doc/ru/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ru/Makefile.am')
-rw-r--r--doc/ru/Makefile.am32
1 files changed, 27 insertions, 5 deletions
diff --git a/doc/ru/Makefile.am b/doc/ru/Makefile.am
index bcb753485..3b7f72830 100644
--- a/doc/ru/Makefile.am
+++ b/doc/ru/Makefile.am
@@ -22,21 +22,43 @@ docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
weechat_quickstart.ru.txt
-all-local: weechat_quickstart.ru.html
+if MAN
+ man_targets =
+ man_install =
+ man_uninstall =
+endif
+if DOC
+ doc_targets = weechat_quickstart.ru.html
+ doc_install = install-doc
+ doc_uninstall = uninstall-doc
+endif
+all-local: $(man_targets) $(doc_targets)
# quickstart
weechat_quickstart.ru.html: weechat_quickstart.ru.txt
$(ASCIIDOC) -a lang=ru -a toc -a date=`date "+%F"` -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -n -o weechat_quickstart.ru.html $(abs_top_srcdir)/doc/ru/weechat_quickstart.ru.txt
-# install docs
+# install man/docs
-install-data-hook:
+install-data-hook: $(man_install) $(doc_install)
+
+install-man:
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/ru/man1/
+ $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/ru/man1/
+
+install-doc:
$(mkinstalldirs) $(DESTDIR)$(docdir)/
$(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-# uninstall docs
+# uninstall man/docs
+
+uninstall-hook: $(man_uninstall) $(doc_uninstall)
+
+uninstall-man:
+ $(RM) $(DESTDIR)$(mandir)/ru/man1/weechat-curses.1
+ -rmdir $(DESTDIR)$(mandir)/ru/man1
-uninstall-hook:
+uninstall-doc:
$(RM) $(DESTDIR)$(docdir)/*.ru.html
-rmdir $(DESTDIR)$(docdir)