Skip to content

Instantly share code, notes, and snippets.

@johnjosephhorton
Created June 29, 2015 15:25
Show Gist options
  • Save johnjosephhorton/118e251163515ef5703f to your computer and use it in GitHub Desktop.
Save johnjosephhorton/118e251163515ef5703f to your computer and use it in GitHub Desktop.
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