aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-08 08:59:16 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-08 08:59:16 +0100
commit064d9d756324b29e6d058d43647c6873d7ab52f8 (patch)
treec8503d9405ef4bff565feac8639cddb1aad6abcc /Makefile
parentadd version and file refs to readme (diff)
downloadscrotty-064d9d756324b29e6d058d43647c6873d7ab52f8.tar.gz
scrotty-064d9d756324b29e6d058d43647c6873d7ab52f8.tar.bz2
scrotty-064d9d756324b29e6d058d43647c6873d7ab52f8.tar.xz
minor text fixes + add swedish translation of the man page
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6d2a9c4..ef789a9 100644
--- a/Makefile
+++ b/Makefile
@@ -98,6 +98,9 @@ endif
# List of translations
LOCALES = sv
+# List of man page translations
+MAN_LOCALES = sv
+
# Files generated texi2html
HTML_FILES = GNU-Free-Documentation-License.html index.html Invoking.html Overview.html
@@ -270,9 +273,17 @@ install-html: $(foreach F,$(HTML_FILES),bin/html/scrotty/$(F))
$(INSTALL_DATA) $^ -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME)/html/"
.PHONY: install-man
-install-man: doc/man/scrotty.1
+install-man: install-man-untranslated install-man-locale
+
+.PHONY: install-man-untranslated
+install-man-untranslated:
$(INSTALL_DIR) -- "$(DESTDIR)$(MAN1DIR)"
- $(INSTALL_DATA) $< -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
+ $(INSTALL_DATA) doc/man/scrotty.1 -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
+
+.PHONY: install-man-locale
+install-man-locale:
+ $(foreach L,$(MAN_LOCALES),$(INSTALL_DIR) -- "$(DESTDIR)$(MANDIR)/$(L)/man1" &&) true
+ $(foreach L,$(MAN_LOCALES),$(INSTALL_DATA) doc/man/scrotty.$(L).1 -- "$(DESTDIR)$(MANDIR)/$(L)/man1/$(COMMAND).1" &&) true
ifdef WITHOUT_GETTEXT
.PHONY: install-locale
@@ -297,6 +308,7 @@ uninstall:
-$(RM) -- "$(DESTDIR)$(DOCDIR)/$(PKGNAME).dvi"
-$(RM) -- $(foreach F,$(HTML_FILES),"$(DESTDIR)$(DOCDIR)/$(PKGNAME)/html/$(F)")
-$(RM) -- "$(DESTDIR)$(MAN1DIR)/$(COMMAND).1"
+ -$(RM) -- $(foreach L,$(MAN_LOCALES),"$(DESTDIR)$(MANDIR)/$(L)/man1/$(COMMAND).1")
-$(RM) -- $(foreach L,$(LOCALES),"$(DESTDIR)$(LOCALEDIR)/$(L)/LC_MESSAGES/$(PKGNAME).mo")