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) ...@@ -2,7 +2,7 @@ EN_SOURCES = $(wildcard en/*.txt)
LANGUAGE_PO = $(wildcard po/*.po) LANGUAGE_PO = $(wildcard po/*.po)
ALL_LANGUAGES = $(subst po/documentation.,,$(subst .po,,$(LANGUAGE_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) ifneq ($(findstring $(MAKEFLAGS),s),s)
ifndef V ifndef V
...@@ -43,3 +43,8 @@ endef ...@@ -43,3 +43,8 @@ endef
$(foreach target, $(TARGETS), $(eval $(call MAKE_TARGET,$(target)))) $(foreach target, $(TARGETS), $(eval $(call MAKE_TARGET,$(target))))
mrproper: mrproper-local
mrproper-local:
rm -f po4a-stamp
...@@ -22,6 +22,15 @@ include ../../Makefile ...@@ -22,6 +22,15 @@ include ../../Makefile
ASCIIDOC_EXTRA += -I../.. ASCIIDOC_EXTRA += -I../..
XMLTO_EXTRA += --searchpath ../.. 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 else
$(HTML_FILTER): %.html: %.txt $(HTML_FILTER): %.html: %.txt
asciidoctor -b xhtml5 -d manpage $< asciidoctor -b xhtml5 -d manpage $<
...@@ -33,11 +42,11 @@ $(MANPAGES): %.1: %.txt ...@@ -33,11 +42,11 @@ $(MANPAGES): %.1: %.txt
man: $(MANPAGES) man: $(MANPAGES)
html: $(HTML_FILTER) html: $(HTML_FILTER)
all: man html all doc-l10n: man html
clean: clean:
rm -f *.1 *.html rm -f *.1 *.html
mrclean: clean mrproper: clean
rm -f *.txt rm -f *.txt
endif 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