34 lines
775 B
Makefile
34 lines
775 B
Makefile
TARGET=fullproposal
|
|
TEX_FILES=$(TARGET).tex main.bib geoffreychallen.bib $(wildcard sections/*)
|
|
|
|
|
|
all: fullproposal.pdf todo
|
|
@if [ `uname` = "Darwin" ] ; then open $(TARGET).pdf; fi
|
|
|
|
graphs:
|
|
@cd graphs; rake
|
|
|
|
$(TARGET).pdf: $(TEX_FILES)
|
|
latexmk -pdf $(TARGET).tex
|
|
|
|
open: $(TARGET).pdf todo
|
|
open $<
|
|
|
|
split: $(TARGET).pdf SplitProposal.workflow
|
|
automator -i `pwd`/$(TARGET).pdf SplitProposal.workflow 2>&1 | grep -v "Type1 font data"
|
|
|
|
clean:
|
|
latexmk -CA -bibtex
|
|
|
|
todo:
|
|
@echo "==========================="
|
|
@echo " Remaining Todos "
|
|
@echo "==========================="
|
|
@find sections -name '*.tex' | \
|
|
xargs grep 'todo' | \
|
|
sed 's:^sections/::; s:\.tex::' | \
|
|
sed 's/\([^:]*\):.*\\todo{/TODO (\1): /; s/}.*//;'
|
|
|
|
|
|
.PHONY: todo plot clean open collabs graphs
|