17 lines
385 B
Makefile
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 {} +;
|