Skip to content

Instantly share code, notes, and snippets.

@matthewfl
Last active October 10, 2015 11:18
Show Gist options
  • Save matthewfl/3682330 to your computer and use it in GitHub Desktop.
Save matthewfl/3682330 to your computer and use it in GitHub Desktop.
Simple makefile for generating all the pdfs based off latex files in a dir and sub dir
Latex = $(wildcard **/*.tex) $(wildcard *.tex)
Pdfs = $(Latex:.tex=.pdf)
all: $(Pdfs)
%.pdf: %.tex
rm -f $@
latex --output-format=pdf -output-directory=$(dir $@) $<
p:
echo $(PATH)
clean:
rm -rf *.pdf *.log *.aux **/*.pdf **/*.log **/*.aux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment