summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--doc/Makefile9
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d00b237..a4b3fe7 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ TOOLNAME = luaotfload-tool
TOOL = $(SRCSRCDIR)/$(TOOLNAME).lua
GRAPH = filegraph
-DOCSRC = $(DOCSRCDIR)/$(NAME).dtx
+DOCSRC = $(addprefix $(DOCSRCDIR)/$(NAME), -main.tex -latex.tex)
GRAPHSRC = $(DOCSRCDIR)/$(GRAPH).dot
MANSRC = $(DOCSRCDIR)/$(TOOLNAME).rst
diff --git a/doc/Makefile b/doc/Makefile
index 2040f5a..9e2d591 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,6 +1,6 @@
NAME = luaotfload
DOCPDF = $(NAME).pdf
-DOCDTX = $(NAME).dtx
+DOCSRC = $(NAME)-latex.tex
SCRIPTNAME = luaotfload-tool
MANSOURCE = $(SCRIPTNAME).rst
@@ -23,10 +23,11 @@ all: manual doc
graph: $(DOTPDF)
manual: $(MANPAGE)
-$(DOCPDF): $(DOCDTX)
- @echo "creating PDF documentation ($(DOCPDF))"
+$(DOCPDF): $(DOCSRC)
+ @echo "creating PDF documentation ($@)"
$(DO_LATEX)
$(DO_LATEX)
+ mv -f -- $(<:tex=pdf) $@
$(MANPAGE): $(MANSOURCE)
@echo "creating man page ($(MANPAGE))"
@@ -44,4 +45,4 @@ clean:
mrproper: clean
@$(RM) -- $(DOCS)
-# vim:set noexpandtab:tabstop=8:shiftwidth=2
+# vim:noexpandtab:tabstop=8:shiftwidth=2