Reorganized the folders and started a common script for the lectures.

This commit is contained in:
2015-10-25 20:24:13 +01:00
parent dd50324683
commit 5791337dea
48 changed files with 1476 additions and 648 deletions

View File

@@ -1,21 +1,20 @@
TEXFILES=descriptivestatistics.tex linear_regression.tex #$(wildcard *.tex)
PDFFILES=$(TEXFILES:.tex=.pdf)
BASENAME=descriptivestatistics
PYFILES=$(wildcard *.py)
PYPDFFILES=$(PYFILES:.py=.pdf)
pdf : $(PDFFILES) $(PYPDFFILES)
pdf : $(BASENAME)-chapter.pdf $(PYPDFFILES)
$(PDFFILES) : %.pdf : %.tex
$(BASENAME)-chapter.pdf : $(BASENAME)-chapter.tex $(BASENAME).tex
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
$(PYPDFFILES) : %.pdf : %.py
python $<
clean :
rm -f *~ $(TEXFILES:.tex=.aux) $(TEXFILES:.tex=.log) $(TEXFILES:.tex=.out) $(TEXFILES:.tex=.nav) $(TEXFILES:.tex=.snm) $(TEXFILES:.tex=.toc) $(TEXFILES:.tex=.vrb)
rm -f *~ $(BASENAME)-chapter.aux $(BASENAME)-chapter.log $(BASENAME)-chapter.out $(BASENAME).aux $(BASENAME).log
cleanall : clean
rm -f $(PDFFILES)
rm -f $(BASENAME)-chapter.pdf
watch :
while true; do ! make -q pdf && make pdf; sleep 0.5; done