Skip to content

Commit

Permalink
Use latexmk
Browse files Browse the repository at this point in the history
  • Loading branch information
tkphd committed Sep 18, 2023
1 parent 184a722 commit 1ad24f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
# Makefile for HiPerC documentation

all: pdf
all: html/index.html
.PHONY: all

.PHONY: dox
dox:
doxygen
latex/hiperc.tex:
doxygen && mv latex/refman.tex $@

.PHONY: tex
tex: dox
$(MAKE) -C latex && \
cd latex && \
cp refman.tex hiperc.tex && \
latexmk hiperc.tex
latex/hiperc.pdf: latex/hiperc.tex
latexmk -cd $<

.PHONY: pdf
pdf: tex
cp latex/hiperc.pdf hiperc_guide.pdf

.PHONY: html
html: dox
html/index.html: latex/hiperc.tex
sphinx-build -b html . _build

.PHONY: clean
.PHONY: clean html pdf
clean:
rm -rf _build/* _static/* html latex xml rst/*
rm -rf _build _static html latex rst
html: html/index.html
pdf: latex/hiperc.pdf
Binary file removed doc/hiperc_guide.pdf
Binary file not shown.

0 comments on commit 1ad24f6

Please sign in to comment.