summaryrefslogtreecommitdiff
path: root/Makefile
blob: 477790f1c058b1c3e721b7138dfcdd1eb14f98bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TARGET=$(subst .tex,.pdf,$(wildcard *.tex))

all: $(TARGET)

%.dep: %.tex
	perl -lnwe 'print "$*.pdf: $$1" if /\\input{([\w-]+\.tex)}/' <$< >$@

include $(TARGET:.pdf=.dep)

genesis.pdf : genesis.tex
	xelatex $<
	xelatex $<

%.pdf : %.tex
	pdflatex $<
	pdflatex $<

clean:
	latexmk -c
	rm -f *.dep

.PHONY: clean