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

36 lines
882 B
Makefile
Raw Normal View History

2020-10-11 17:28:51 +02:00
HANDOUTS = $(patsubst %.odt,%.pdf,$(wildcard revealjs/*/handout.odt))
REVEALJS = $(patsubst %.md,%.html,$(wildcard revealjs/*/index.md))
LATEX = $(patsubst %.tex,%.pdf,$(wildcard latex/*/index.tex))
all: ${HANDOUTS} ${REVEALJS} ${LATEX}
2020-02-25 01:47:25 +01:00
.PHONY: clean
clean:
2020-10-11 16:47:38 +02:00
rm -f \
*/*/handout.pdf \
2020-10-11 17:28:51 +02:00
latex/*/index.aux \
latex/*/index.bbl \
latex/*/index.bcf \
latex/*/index.blg \
latex/*/index.fdb_latexmk \
latex/*/index.fls \
latex/*/index.log \
latex/*/index.nav \
latex/*/index.out \
2020-10-11 16:47:38 +02:00
latex/*/index.pdf \
2020-10-11 17:28:51 +02:00
latex/*/index.run.xml \
latex/*/index.snm \
latex/*/index.toc \
latex/*/index.xdv \
2020-10-11 16:47:38 +02:00
revealjs/*/index.html \
revealjs/*/index.pdf
revealjs/%/index.html: revealjs/%/*.md
python3 revealjs/build.py $@
%/handout.pdf: %/handout.odt
libreoffice --headless --convert-to pdf "$<" --outdir $(@D)
2020-10-11 17:28:51 +02:00
latex/%/index.pdf: latex/%/index.tex
latexmk -cd -xelatex $<