24 lines
783 B
Makefile
24 lines
783 B
Makefile
BASENAME=scientificcomputing-script
|
|
|
|
SUBDIRS=designpattern statistics bootstrap regression likelihood pointprocesses
|
|
#programming
|
|
SUBTEXS=$(foreach subd, $(SUBDIRS), $(subd)/lecture/$(subd).tex)
|
|
|
|
pdf : chapters $(BASENAME).pdf
|
|
|
|
chapters :
|
|
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture pdf; done
|
|
|
|
$(BASENAME).pdf : $(BASENAME).tex header.tex $(SUBTEXS)
|
|
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)
|
|
|
|
watchpdf :
|
|
while true; do ! make -q pdf && make pdf; sleep 0.5; done
|