summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-06-09 23:47:01 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-06-09 23:47:30 +0200
commitfdea22314cb51cf514f6f1004f75b9d6bacafe2d (patch)
tree8c18b72de20178464c09e66f5bc3fbc0d5d8c6cb /doc/Makefile
parent170f83f02682c3e91e784a303de0efb8e90d133d (diff)
downloadluaotfload-fdea22314cb51cf514f6f1004f75b9d6bacafe2d.tar.gz
[*] add rules for building config man page to makefiles
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile24
1 files changed, 17 insertions, 7 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 9e2d591..ed340a4 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -3,14 +3,20 @@ DOCPDF = $(NAME).pdf
DOCSRC = $(NAME)-latex.tex
SCRIPTNAME = luaotfload-tool
-MANSOURCE = $(SCRIPTNAME).rst
-MANPAGE = $(SCRIPTNAME).1
+TOOLMANSRC = $(SCRIPTNAME).rst
+TOOLMAN = $(SCRIPTNAME).1
+
+CONFNAME = luaotfload.conf
+CONFMANSRC = $(CONFNAME).rst
+CONFMAN = $(CONFNAME).5
+
+MANPAGES = $(TOOLMAN) $(CONFMAN)
GRAPH = filegraph
DOTPDF = $(GRAPH).pdf
DOT = $(GRAPH).dot
-DOCS = $(DOTPDF) $(DOCPDF) $(MANPAGE)
+DOCS = $(DOTPDF) $(DOCPDF) $(MANPAGES)
DO_LATEXMK = @latexmk -e '$$max_repeat = 5' -pdf -lualatex -silent $< >/dev/null
# latexmk does only one run on my machine, so we’re not going to rely on it
@@ -19,9 +25,9 @@ DO_GRAPHVIZ = @dot -Tpdf -o $@ $< > /dev/null
DO_DOCUTILS = @rst2man $< >$@ 2>/dev/null
doc: graph $(DOCPDF)
-all: manual doc
+all: manuals doc
graph: $(DOTPDF)
-manual: $(MANPAGE)
+manuals: $(TOOLMAN) $(CONFMAN)
$(DOCPDF): $(DOCSRC)
@echo "creating PDF documentation ($@)"
@@ -29,8 +35,12 @@ $(DOCPDF): $(DOCSRC)
$(DO_LATEX)
mv -f -- $(<:tex=pdf) $@
-$(MANPAGE): $(MANSOURCE)
- @echo "creating man page ($(MANPAGE))"
+$(TOOLMAN): $(TOOLMANSRC)
+ @echo "creating man page ($(TOOLMAN))"
+ $(DO_DOCUTILS)
+
+$(CONFMAN): $(CONFMANSRC)
+ @echo "creating man page ($(CONFMAN))"
$(DO_DOCUTILS)
$(DOTPDF): $(DOT)