summaryrefslogtreecommitdiffstats
path: root/old-makefile
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:00:40 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2014-01-08 16:00:40 +0100
commitc2fe43361f876c681a6ab553705fec6d62323c22 (patch)
treeb6880bb0f1facc62ccf1b384aadbc7ef6827eba3 /old-makefile
parent49646f10f054863b17fcc203025fa65608b1ce94 (diff)
downloadmpv-c2fe43361f876c681a6ab553705fec6d62323c22.tar.bz2
mpv-c2fe43361f876c681a6ab553705fec6d62323c22.tar.xz
Switch PDF manual generation to rst2pdf
This finally gets rid of the LaTeX dependency. We should actually be using docultils directly here, but I didn't do this because of all the potential Python 2/3 breakage.
Diffstat (limited to 'old-makefile')
-rw-r--r--old-makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/old-makefile b/old-makefile
index 23bb62140a..05f1f7d4a7 100644
--- a/old-makefile
+++ b/old-makefile
@@ -373,11 +373,8 @@ endif
all: $(ALL_TARGETS)
-%.tex: %.rst
- $(RST2LATEX) --config=DOCS/man/docutils.conf $< $@
-
-%.pdf: %.tex
- pdflatex -interaction=batchmode -jobname=$(basename $@) $<; pdflatex -interaction=batchmode -jobname=$(basename $@) $<
+%.pdf: %.rst
+ $(RST2PDF) -c --repeat-table-rows $< -o $@
%.1: %.rst
$(RST2MAN) $< $@
@@ -536,7 +533,7 @@ clean:
-$(RM) $(call ADD_ALL_DIRS,/*.o /*.d /*.a /*.ho /*~)
-$(RM) $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~)
-$(RM) $(call ADD_ALL_EXESUFS,mpv)
- -$(RM) $(call ADDSUFFIXES,.pdf .tex .log .aux .out .toc,DOCS/man/*/mpv)
+ -$(RM) $(call ADDSUFFIXES,.pdf,DOCS/man/*/mpv)
-$(RM) DOCS/man/*/mpv.1
-$(RM) version.h
-$(RM) input/input_conf.h