Last active
October 10, 2015 11:18
-
-
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
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
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