This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/projects/project.mk

26 lines
632 B
Makefile

BASENAME=$(subst project_,,$(notdir $(CURDIR)))
latex:
pdflatex $(BASENAME).tex
pdflatex $(BASENAME).tex
pdf: $(BASENAME).pdf
$(BASENAME).pdf : $(BASENAME).tex ../header.tex ../instructions.tex
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
watch :
while true; do ! make -q pdf && make pdf; sleep 0.5; done
clean:
rm -f *~ code/*~ solution/*~ data/*~
rm -rf *.log *.aux *.out auto
rm -f `basename *.tex .tex`.pdf
rm -f *.zip
zip: latex
rm -f zip $(BASENAME).zip
zip $(BASENAME).zip *.pdf *.m data/* $(ZIPFILES)