27 lines
635 B
Makefile
27 lines
635 B
Makefile
BASENAME=$(subst project_,,$(notdir $(CURDIR)))
|
|
|
|
|
|
pdf: $(BASENAME).pdf
|
|
|
|
$(BASENAME).pdf : $(BASENAME).tex ../header.tex ../instructions.tex
|
|
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get" && 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
|
|
pdflatex $(BASENAME).tex
|
|
|
|
latex:
|
|
pdflatex $(BASENAME).tex
|
|
pdflatex $(BASENAME).tex
|
|
|
|
zip: latex
|
|
rm -f zip $(BASENAME).zip
|
|
zip $(BASENAME).zip *.pdf *.m data/* $(ZIPFILES)
|