Skip to content

Instantly share code, notes, and snippets.

Embed
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 $<
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
You can’t perform that action at this time.