forked from BitSharesEurope/bitshares-whitepapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (22 loc) · 714 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PDFLATEXOPTS=""
TMPFILES = *.aux *.log *.dvi *.bbl *.blg *.mtc* *.maf \
*.cb *.toc *.out *.lof *.lot *.los *.lom *.tmp \
*.adx *.idx *.ind *.ilg *.and *.snm *.nav \
$(shell find . -name "*~") \
$(shell find . -name "*.bak") \
$(shell find . -name "*.backup") \
$(shell find . -name "auto")
SRC=$(wildcard bitshares-*.tex)
BIBS=$(wildcard *.bib) $(wildcard *.bst)
all: compile clean
compile: $(SRC:.tex=.pdf)
%.pdf: %.tex %.bbl
@pdflatex $(PDFLATEXOPTS) $<
@pdflatex $(PDFLATEXOPTS) $<
@mv $(shell basename $< .tex).pdf pdfs/
%.aux: %.tex
@pdflatex $(PDFLATEXOPTS) $<
%.bbl: %.aux
@bibtex $(shell basename $< .tex)
clean:
@rm -rf $(TMPFILES)