From 90eff6e2f8591b40b48a17859433fafc90d2072c Mon Sep 17 00:00:00 2001 From: Jan Benda Date: Mon, 2 Nov 2015 10:58:12 +0100 Subject: [PATCH] root makefile calls subdirectories --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aa43ca0..1e7bc1c 100644 --- a/Makefile +++ b/Makefile @@ -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 - -