Skip to content
Snippets Groups Projects
Commit 34e65653 authored by Jean-Noël Avila's avatar Jean-Noël Avila
Browse files

Add install-txt target to Makefile

This allows to easily export translated manpage sources in another repository.
parent b5273941
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ EN_SOURCES = $(wildcard en/*.txt)
LANGUAGE_PO = $(wildcard po/*.po)
ALL_LANGUAGES = $(subst po/documentation.,,$(subst .po,,$(LANGUAGE_PO)))
L10N_BUILD_TARGETS = all man html install doc-l10n install-l10n
L10N_BUILD_TARGETS = all man html install doc-l10n install-l10n install-txt
L10N_CLEAN_TARGETS = clean mrproper
L10N_TARGETS = $(L10N_CLEAN_TARGETS) $(L10N_BUILD_TARGETS)
......
......@@ -13,7 +13,7 @@ vpath %rb . .. ../..
ifdef mandir
tmp_mandir := $(mandir)
mandir = $(temp_mandir)/$(lang)
mandir = $(tmp_mandir)/$(lang)
else
mandir = $(prefix)/share/man/$(lang)
endif
......@@ -55,6 +55,10 @@ html: $(HTML_FILTER)
all doc-l10n: man html
install-txt:
install -d -m 755 $(prefix)/$(lang)
install *.txt -m 644 $(prefix)/$(lang)
clean:
rm -f *.1 *.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment