Created
December 10, 2018 10:41
-
-
Save gtklocker/92fd39a51c0bda2c382308d3c2f3daef to your computer and use it in GitHub Desktop.
Sane Makefile for LaTeX targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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