summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile26
-rw-r--r--doc/Makefile24
2 files changed, 33 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index 2dc68bd..fd3eefb 100644
--- a/Makefile
+++ b/Makefile
@@ -25,16 +25,20 @@ RESOURCESCRIPTS = $(GLYPHSCRIPT) $(CHARSCRIPT) $(STATUSSCRIPT)
TOOLNAME = luaotfload-tool
TOOL = $(SRCSRCDIR)/$(TOOLNAME).lua
+CONFNAME = luaotfload.conf
+
GRAPH = filegraph
DOCSRC = $(addprefix $(DOCSRCDIR)/$(NAME), -main.tex -latex.tex)
GRAPHSRC = $(DOCSRCDIR)/$(GRAPH).dot
-MANSRC = $(DOCSRCDIR)/$(TOOLNAME).rst
+MANSRC = $(DOCSRCDIR)/$(TOOLNAME).rst $(DOCSRCDIR)/$(CONFNAME).rst
DOCPDF = $(DOCSRCDIR)/$(NAME).pdf
DOTPDF = $(DOCSRCDIR)/$(GRAPH).pdf
-MANPAGE = $(DOCSRCDIR)/$(TOOLNAME).1
+TOOLMAN = $(DOCSRCDIR)/$(TOOLNAME).1
+CONFMAN = $(DOCSRCDIR)/$(CONFNAME).5
+MANPAGES = $(TOOLMAN) $(CONFMAN)
-DOCS = $(DOCPDF) $(DOTPDF) $(MANPAGE)
+DOCS = $(DOCPDF) $(DOTPDF) $(MANPAGES)
# Files grouped by generation mode
GLYPHS = $(BUILDDIR)/$(NAME)-glyphlist.lua
@@ -47,7 +51,6 @@ SOURCE = $(DOCSRC) $(MANSRC) $(SRC) README COPYING Makefile NEWS $(RESOURCESCRI
SCRIPTSTATUS = $(TOOL) $(RESOURCESCRIPTS)
RUNSTATUS = $(filter-out $(SCRIPTSTATUS),$(SRC))
DOCSTATUS = $(DOCPDF) $(DOTPDF) README NEWS COPYING
-MANSTATUS = $(MANPAGE)
SRCSTATUS = $(DOCSRC) $(MANSRC) $(GRAPHSRC) Makefile
# The following definitions should be equivalent
@@ -59,7 +62,8 @@ FORMAT = luatex
SCRIPTDIR = $(TEXMFROOT)/scripts/$(NAME)
RUNDIR = $(TEXMFROOT)/tex/$(FORMAT)/$(NAME)
DOCDIR = $(TEXMFROOT)/doc/$(FORMAT)/$(NAME)
-MANDIR = $(TEXMFROOT)/doc/man/man1/
+MAN1DIR = $(TEXMFROOT)/doc/man/man1/
+MAN5DIR = $(TEXMFROOT)/doc/man/man5/
SRCDIR = $(TEXMFROOT)/source/$(FORMAT)/$(NAME)
TEXMFROOT = $(shell kpsewhich --var-value TEXMFHOME)
@@ -95,7 +99,7 @@ world: all ctan
graph: $(DOTPDF)
doc: $(DOCS)
pdf: $(DOCPDF)
-manual: $(MANPAGE)
+manual: $(MANPAGES)
$(DOTPDF):
@$(MAKE) -C $(DOCSRCDIR) graph
@@ -103,8 +107,8 @@ $(DOTPDF):
$(DOCPDF):
@$(MAKE) -C $(DOCSRCDIR) doc
-$(MANPAGE):
- @$(MAKE) -C $(DOCSRCDIR) manual
+$(MANPAGES):
+ @$(MAKE) -C $(DOCSRCDIR) manuals
$(GLYPHS): builddir
$(DO_GLYPHS)
@@ -132,7 +136,8 @@ $(CTAN_ZIP): $(DOCS) $(SOURCE) $(COMPILED) $(TDS_ZIP)
define run-install-doc
@mkdir -p $(DOCDIR) && cp -- $(DOCSTATUS) $(VGND) $(DOCDIR)
@mkdir -p $(SRCDIR) && cp -- $(SRCSTATUS) $(SRCDIR)
-@mkdir -p $(MANDIR) && cp -- $(MANSTATUS) $(MANDIR)
+@mkdir -p $(MAN1DIR) && cp -- $(TOOLMAN) $(MAN1DIR)
+@mkdir -p $(MAN5DIR) && cp -- $(CONFMAN) $(MAN5DIR)
endef
define run-install
@@ -186,7 +191,8 @@ showtargets:
@echo " resources generate resource files (chars, glyphs)"
@echo
@echo " pdf build luaotfload.pdf"
- @echo " manual crate manpage for luaotfload-tool (requires Docutils)"
+ @echo " manual crate manpages for luaotfload-tool(1) and"
+ @echo " luaotfload.conf(5) (requires Docutils)"
@echo " graph generate file graph (requires GraphViz)"
@echo
@echo " chars import char-def.lua as luaotfload-characters.lua"
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)