Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 $<
@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