Skip to content

Instantly share code, notes, and snippets.

@rbonvall
Created October 19, 2011 20:33
Show Gist options
  • Save rbonvall/1299581 to your computer and use it in GitHub Desktop.
Save rbonvall/1299581 to your computer and use it in GitHub Desktop.
Simple Makefile for LaTeX documents. You have to install rubber beforehand.
TEXFILES = $(wildcard *.tex)
PDFFILES = $(TEXFILES:.tex=.pdf)
all: pdf
pdf: $(PDFFILES)
%.pdf: %.tex
@rubber --pdf $<
clean:
@rubber --clean --pdf $(TEXFILES:.tex=)
.PHONY: pdf clean all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment