Commit 1852b0a9 authored by Roland Hieber's avatar Roland Hieber

Makefile: init git submodule automatically, add clean rule, fix s0artcl.cls dependency

parent b91f3cf4
......@@ -4,20 +4,29 @@
OBJ = \
protokoll-mv-2019-01-20.pdf \
# Ab hier muss eigentlich nichts mehr geändert werden.
# Macro für Pandoc:
pandoc = pandoc -f markdown+grid_tables -i $< -s -t $(1) -o $@ $(2)
all: $(OBJ)
s0artcl.cls s0minutes.cls:
.git/modules/latex/: .gitmodules
git submodule update --init
s0artcl.cls s0minutes.cls: .git/modules/latex/
cd latex && make
ln -s latex/s0minutes.cls .
ln -s latex/s0artcl.cls .
rm -f $@ && ln -s $(patsubst %,latex/%,$@) .
touch $@
%.pdf: %.latex s0minutes.cls
%.pdf: %.latex s0minutes.cls s0artcl.cls
pdflatex $< \
&& pdflatex $< \
&& pdflatex $<
%.latex: %.md pandoc-template.latex
$(call pandoc, latex, --template=pandoc-template)
clean:
rm -f $(OBJ) $(OBJ:pdf=latex) $(OBJ:pdf=aux) $(OBJ:pdf=log) $(OBJ:pdf=out) $(OBJ:pdf=toc)
rm -f s0artcl.cls s0minutes.cls
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment