Skip to content

Instantly share code, notes, and snippets.

@matze
Created June 28, 2013 15:20
Show Gist options
  • Save matze/5885476 to your computer and use it in GitHub Desktop.
Save matze/5885476 to your computer and use it in GitHub Desktop.
rubber-based LaTeX compilation Makefile
SRC=$(wildcard *.tex)
OPTS=--pdf
.PHONY: clean
all: $(patsubst %.tex,%.pdf,$(SRC))
%.pdf: %.tex
@rubber $(OPTS) $<
clean:
@rubber --clean $(OPTS) $(SRC)
@rm -f $(patsubst %.tex,%-blx.bib,$(SRC))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment