This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues/pull-requests.
presis/Makefile

35 lines
706 B
Makefile
Raw Normal View History

2020-10-22 19:32:38 +02:00
HANDOUTS = $(patsubst %.tex,%.pdf,$(wildcard */*/handout.tex))
2020-10-11 17:28:51 +02:00
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 \
2020-10-11 17:41:13 +02:00
*/*/*.aux \
*/*/*.bbl \
*/*/*.bcf \
*/*/*.blg \
*/*/*.fdb_latexmk \
*/*/*.fls \
*/*/*.log \
*/*/*.nav \
*/*/*.out \
*/*/*.run.xml \
*/*/*.snm \
*/*/*.toc \
*/*/*.xdv \
2020-10-11 16:47:38 +02:00
*/*/handout.pdf \
2020-10-11 17:41:13 +02:00
*/*/index.pdf \
revealjs/*/index.html
revealjs/%/index.html: revealjs/%/*.md
python3 revealjs/build.py $@
2020-10-11 17:41:13 +02:00
%/handout.pdf: %/handout.tex
latexmk -cd -xelatex $<
2020-10-11 17:28:51 +02:00
latex/%/index.pdf: latex/%/index.tex
latexmk -cd -xelatex $<