root makefile calls subdirectories

This commit is contained in:
Jan Benda 2015-11-02 10:58:12 +01:00
parent 5c185a0d90
commit 90eff6e2f8

View File

@ -1,17 +1,20 @@
BASENAME=scientificcomputing-script
SUBDIRS=programming statistics bootstrap likelihood pointprocesses spike_trains designpattern
# regression
pdf : $(BASENAME).pdf
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture pdf; done
$(BASENAME).pdf : $(BASENAME).tex header.tex
export TEXMFOUTPUT=.; pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
clean :
rm -f *~ $(BASENAME).aux $(BASENAME).log $(BASENAME).out $(BASENAME).toc
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture clean; done
cleanall : clean
rm -f $(PDFFILE)
watch :
while true; do ! make -q pdf && make pdf; sleep 0.5; done