Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ts := $(shell /bin/date "+%Y-%m-%d---%H-%M-%S")
project.pdf: project.bib project.tex
pdflatex -interaction=nonstopmode project
bibtex project
pdflatex -interaction=nonstopmode project
pdflatex -interaction=nonstopmode project
backup:
tar --exclude='../backups' -zcvf ../backups/project_$(ts).tar.gz ../
snapshot:
@echo Timestamp is $(ts)
cp project.pdf ../snapshots/project_$(ts).pdf
clean:
rm *.aux *.log *.out *.bbl *.blg *.dvi *.aux *.fff *.lof *.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment