This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
presis/Makefile
Simon Bruder 5cc49ae685
All checks were successful
continuous-integration/drone/push Build is passing
Build all handouts
2020-10-22 19:32:38 +02:00

35 lines
706 B
Makefile

HANDOUTS = $(patsubst %.tex,%.pdf,$(wildcard */*/handout.tex))
REVEALJS = $(patsubst %.md,%.html,$(wildcard revealjs/*/index.md))
LATEX = $(patsubst %.tex,%.pdf,$(wildcard latex/*/index.tex))
all: ${HANDOUTS} ${REVEALJS} ${LATEX}
.PHONY: clean
clean:
rm -f \
*/*/*.aux \
*/*/*.bbl \
*/*/*.bcf \
*/*/*.blg \
*/*/*.fdb_latexmk \
*/*/*.fls \
*/*/*.log \
*/*/*.nav \
*/*/*.out \
*/*/*.run.xml \
*/*/*.snm \
*/*/*.toc \
*/*/*.xdv \
*/*/handout.pdf \
*/*/index.pdf \
revealjs/*/index.html
revealjs/%/index.html: revealjs/%/*.md
python3 revealjs/build.py $@
%/handout.pdf: %/handout.tex
latexmk -cd -xelatex $<
latex/%/index.pdf: latex/%/index.tex
latexmk -cd -xelatex $<