template-latex/Makefile
Collin J. Doering 67bf619c9e
Build twice so the toc is correctly generated
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2019-06-03 22:23:50 -04:00

17 lines
385 B
Makefile

PDFLATEX = $(shell which pdflatex)
PREFIX ?= .
FILENAME = template
$(FILENAME).pdf: $(FILENAME).tex
@$(PDFLATEX) -file-line-error $(FILENAME).tex
@$(PDFLATEX) -file-line-error $(FILENAME).tex
.PHONY: install
install: $(FILENAME).pdf
install $(FILENAME).pdf $(PREFIX)/$(FILENAME)
.PHONY: clean
clean:
@rm -rf auto
@find . -regex '.*\.\(aux\|log\|out\|pdf\|toc\)' -exec rm {} +;