Skip to content

Instantly share code, notes, and snippets.

@gtklocker
Created December 10, 2018 10:41
Show Gist options
  • Save gtklocker/92fd39a51c0bda2c382308d3c2f3daef to your computer and use it in GitHub Desktop.
Save gtklocker/92fd39a51c0bda2c382308d3c2f3daef to your computer and use it in GitHub Desktop.
Sane Makefile for LaTeX targets
.PHONY: all clean
all: $(patsubst %.tex, %.pdf, $(wildcard *.tex))
%.pdf: %.tex
latexrun $<
%.tex: preamble.sty
clean:
rm -rf *.log *.aux *.out *.pdf *.bbl *.blg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment