diff --git a/Makefile b/Makefile index b59d881..140f584 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ BASENAME=scientificcomputing-script SUBDIRS=programming debugging plotting codestyle statistics bootstrap regression likelihood pointprocesses designpattern SUBTEXS=$(foreach subd, $(SUBDIRS), $(subd)/lecture/$(subd).tex) -all : plots chapters index script +all : plots chapters index script exercises chapters : for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture chapter; done @@ -37,6 +37,11 @@ watchpdf : watchscript : while true; do ! make -s -q script && make script; sleep 0.5; done + +exercises: + for sd in $(SUBDIRS); do if test -d $$sd/exercises; then $(MAKE) -C $$sd/exercises pdf; fi; done + + cleanplots: for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture cleanplots; done @@ -46,6 +51,7 @@ cleantex: clean : cleantex for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture clean; done + for sd in $(SUBDIRS); do if test -d $$sd/exercises; then $(MAKE) -C $$sd/exercises clean; fi; done cleanall : clean rm -f $(BASENAME).pdf