diff --git a/Makefile b/Makefile index 687d3b1914c001c6ab3e3b11179ba999042fb355..0e47af8ea73928fd78961db0e758b78e08a1de07 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 6fc23476629f9f433548218c7b98a8e5abde0903..4e44860137c0da98883f8ca20595bbd842c4fcc7 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