Skip to content

Commit

Permalink
Add install-txt target to Makefile
Browse files Browse the repository at this point in the history
This allows to easily export translated manpage sources in another repository.
  • Loading branch information
jnavila committed Jul 4, 2019
1 parent b527394 commit 34e6565
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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)

Expand Down
6 changes: 5 additions & 1 deletion makefile.locale
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 34e6565

Please sign in to comment.