diff options
| author | Philipp Gesang <phg42.2a@gmail.com> | 2014-02-10 08:02:31 +0100 | 
|---|---|---|
| committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-02-10 08:02:31 +0100 | 
| commit | 446596c46f495760b8c19d51bdfc3d210cd194bc (patch) | |
| tree | 97c0236b1878e8a6b40e0135fa13bad9dbefb504 /doc/Makefile | |
| parent | c148347cb5c2c6cd3b58ac9daaad751500e190fd (diff) | |
| parent | 06e79fac8810293b5f3e9d03a1c0f838aefb4784 (diff) | |
| download | luaotfload-446596c46f495760b8c19d51bdfc3d210cd194bc.tar.gz | |
Merge pull request #194 from phi-gamma/texlive2014
move documentation to ./doc subdir
Diffstat (limited to 'doc/Makefile')
| -rw-r--r-- | doc/Makefile | 47 | 
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..2040f5a --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,47 @@ +NAME		= luaotfload +DOCPDF		= $(NAME).pdf +DOCDTX		= $(NAME).dtx + +SCRIPTNAME	= luaotfload-tool +MANSOURCE	= $(SCRIPTNAME).rst +MANPAGE		= $(SCRIPTNAME).1 + +GRAPH		= filegraph +DOTPDF		= $(GRAPH).pdf +DOT		= $(GRAPH).dot + +DOCS		= $(DOTPDF) $(DOCPDF) $(MANPAGE) + +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 +DO_LATEX	= @lualatex -interaction=batchmode $< >/dev/null +DO_GRAPHVIZ	= @dot -Tpdf -o $@ $< > /dev/null +DO_DOCUTILS	= @rst2man $< >$@ 2>/dev/null + +doc: graph $(DOCPDF) +all: manual doc +graph: $(DOTPDF) +manual: $(MANPAGE) + +$(DOCPDF): $(DOCDTX) +	@echo "creating PDF documentation ($(DOCPDF))" +	$(DO_LATEX) +	$(DO_LATEX) + +$(MANPAGE): $(MANSOURCE) +	@echo "creating man page ($(MANPAGE))" +	$(DO_DOCUTILS) + +$(DOTPDF): $(DOT) +	@echo "creating file graph ($(DOTPDF))" +	$(DO_GRAPHVIZ) + +.PHONY: clean mrproper + +clean: +	@$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.out + +mrproper: clean +	@$(RM) -- $(DOCS) + +# vim:set noexpandtab:tabstop=8:shiftwidth=2  | 
