From 064d9d756324b29e6d058d43647c6873d7ab52f8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 8 Dec 2015 08:59:16 +0100 Subject: minor text fixes + add swedish translation of the man page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Makefile') 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") -- cgit v1.2.3-70-g09d2