From 8c5d45c8dfef54816645bc610d7472879d26e3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr> Date: Sun, 23 Dec 2018 17:11:42 +0100 Subject: [PATCH] Add other targets --- Makefile | 7 ++++++- makefile.locale | 13 +++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 687d3b1..0e47af8 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ EN_SOURCES = $(wildcard en/*.txt) LANGUAGE_PO = $(wildcard po/*.po) ALL_LANGUAGES = $(subst po/documentation.,,$(subst .po,,$(LANGUAGE_PO))) -TARGETS = all man html clean install +TARGETS = all man html clean install doc-l10n install-l10n mrproper ifneq ($(findstring $(MAKEFLAGS),s),s) ifndef V @@ -43,3 +43,8 @@ endef $(foreach target, $(TARGETS), $(eval $(call MAKE_TARGET,$(target)))) + +mrproper: mrproper-local + +mrproper-local: + rm -f po4a-stamp diff --git a/makefile.locale b/makefile.locale index 6fc2347..4e44860 100644 --- a/makefile.locale +++ b/makefile.locale @@ -22,6 +22,15 @@ include ../../Makefile ASCIIDOC_EXTRA += -I../.. XMLTO_EXTRA += --searchpath ../.. +install-l10n: + $(INSTALL) -d -m 755 $(DESTDIR)$(man1dir) + $(INSTALL) -d -m 755 $(DESTDIR)$(man5dir) + $(INSTALL) -d -m 755 $(DESTDIR)$(man7dir) + [ ! -z $(DOC_MAN1) ] && $(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir) + [ ! -z $(DOC_MAN5) ] && $(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir) + [ ! -z $(DOC_MAN7) ] && $(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir) + + else $(HTML_FILTER): %.html: %.txt asciidoctor -b xhtml5 -d manpage $< @@ -33,11 +42,11 @@ $(MANPAGES): %.1: %.txt man: $(MANPAGES) html: $(HTML_FILTER) -all: man html +all doc-l10n: man html clean: rm -f *.1 *.html -mrclean: clean +mrproper: clean rm -f *.txt endif -- GitLab