Skip to content

Instantly share code, notes, and snippets.

@diegoceccarelli
Last active August 29, 2015 13:57
Show Gist options
  • Save diegoceccarelli/9662903 to your computer and use it in GitHub Desktop.
Save diegoceccarelli/9662903 to your computer and use it in GitHub Desktop.
Thesis makefile
LATEX_MAIN=thesis
LATEX=pdflatex
build: $(LATEX_MAIN).tex clean
$(LATEX) $(LATEX_MAIN).tex
bibtex $(LATEX_MAIN)
$(LATEX) $(LATEX_MAIN).tex
$(LATEX) $(LATEX_MAIN).tex
./wlog.sh
pdf: $(LATEX_MAIN).tex
$(LATEX) $(LATEX_MAIN).tex
clean:
rm -f *toc *ps *log *idx *~ *conflicted* *aux *bbl
rm -f *ilg *blg *save *ind *dvi *bak Icon* Temp.tex
rm -f *{maf,mtc,mtc0,out}
rm -f images/*log
update:
git svn fetch
git svn rebase
up: update
commit:
git commit -a -m "$m"
git svn dcommit
minor:
git commit -a -m "minor"
git svn dcommit
co: commit
#!/usr/bin/env bash
a=$(date +%s); b=$(cat *tex */*tex | wc -c); echo $a" "$b >> wlog.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment