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

Add other targets

parent b02c8a55
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)))
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
......@@ -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
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