Skip to content
Snippets Groups Projects
Makefile 503 B
Newer Older
neze's avatar
neze committed
.PHONY: all clean cleandist %.clean

TEXFILES:=$(shell find . -type f -name '*.tex')

w2ak's avatar
w2ak committed
all: minimal.pdf
neze's avatar
neze committed

w2ak's avatar
w2ak committed
minimal.pdf: minimal.tex
	lualatex -interaction=nonstopmode $<

neze's avatar
neze committed
%.pdf: %.tex
	pdflatex -interaction=nonstopmode $<
	pdflatex -interaction=nonstopmode $<
	pdflatex -interaction=nonstopmode $<

clean: $(patsubst %.tex,%.clean,$(TEXFILES))

%.clean:
	find -name '$*.*' | grep -Ev "\.tex$$|\.pdf$$" | xargs rm -f

cleandist: $(patsubst %.tex,%.cleandist,$(TEXFILES))

%.cleandist: %.clean
	rm -f $*.pdf