-
Matthias Aßhauer authored
Signed-off-by:
Matthias Aßhauer <mha1993@live.de>
Matthias Aßhauer authoredSigned-off-by:
Matthias Aßhauer <mha1993@live.de>
makefile.locale 1.32 KiB
vpath GIT-VERSION-FILE . ..
MAN_FILTER = $(wildcard git*.txt)
HTML_FILTER = $(patsubst %.txt,%.html,$(MAN_FILTER))
ifeq ($(wildcard ../../build-docdep.perl),../../build-docdep.perl)
vpath %conf . .. ../..
vpath %in . .. ../..
vpath %xsl . .. ../..
ifdef mandir
tmp_mandir := $(mandir)
mandir = $(temp_mandir)/$(lang)
else
mandir = $(prefix)/share/man/$(lang)
endif
include ../../Makefile
XMLTO_EXTRA += --searchpath ../..
ASCIIDOC_CONF = -f ../../asciidoc.conf
doc-l10n: all
install-l10n:
$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
$(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
$(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
if [ ! -z "$(DOC_MAN1)" ]; then $(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir); fi
if [ ! -z "$(DOC_MAN5)" ]; then $(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir); fi
if [ ! -z "$(DOC_MAN7)" ]; then $(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir); fi
else
ifndef V
QUIET_PO4A = @echo ' ' PO4A $(lang) $@;
QUIET_ASCIIDOC = @echo ' ' ASCIIDOC $(lang) $@;
endif
$(HTML_FILTER): %.html: %.txt
$(QUIET_ASCIIDOC)asciidoctor -b xhtml5 -d manpage $<
MANPAGES=$(patsubst %.txt,%.1,$(MAN_FILTER))
$(MANPAGES): %.1: %.txt
$(QUIET_ASCIIDOC)asciidoctor -b manpage -d manpage -o $@ $<
man: $(MANPAGES)
html: $(HTML_FILTER)
all doc-l10n: man html
clean:
rm -f *.1 *.html
endif
mrproper: clean
rm -f *.txt