Skip to content

Instantly share code, notes, and snippets.

@alexalemi
Created November 29, 2012 16:00
Show Gist options
  • Save alexalemi/4170001 to your computer and use it in GitHub Desktop.
Save alexalemi/4170001 to your computer and use it in GitHub Desktop.
Simple LaTeX rubber makefile
.PHONY: clean all cleanall
# Make sure this has all of the right dependencies
DEPENDS=tex/*.tex *.sty *.bib *.tex
TARGET=aexam
all: $(TARGET).pdf
%.pdf: %.tex $(DEPENDS)
rubber -f --pdf -s $<
rubber-info --check $<
clean:
rubber --clean $(TARGET)
cleanall:
rubber --clean --pdf $(TARGET)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment