31 lines
1.1 KiB
Makefile
31 lines
1.1 KiB
Makefile
BASENAME=scientificcomputing-script
|
|
|
|
SUBDIRS=programming plotting programmingstyle statistics bootstrap regression likelihood pointprocesses designpattern
|
|
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)
|
|
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
|
|
|
|
again :
|
|
pdflatex $(BASENAME).tex
|
|
|
|
index :
|
|
pdflatex -interaction=scrollmode $(BASENAME).tex
|
|
splitindex $(BASENAME).idx
|
|
pdflatex -interaction=scrollmode $(BASENAME).tex | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex $(BASENAME).tex || true
|
|
|
|
clean :
|
|
rm -f *~ $(BASENAME).aux $(BASENAME).log $(BASENAME).out $(BASENAME).toc $(BASENAME).lo? $(BASENAME).idx $(BASENAME)-term.i* $(BASENAME)-enterm.i* $(BASENAME)-code.i*
|
|
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
|