Added files
This commit is contained in:
40
Makefile
Normal file
40
Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
OUT_DIR := out
|
||||
$(shell mkdir -p $(OUT_DIR))
|
||||
GRAPHS_DIR := graphs
|
||||
CONTENTS_DIR := contents
|
||||
|
||||
CONTENTS := $(wildcard $(CONTENTS)/*.tex)
|
||||
GRAPHS := $(wildcard $(GRAPHS_DIR)/*.gv)
|
||||
GRAPHS_IMG := $(GRAPHS:$(GRAPHS_DIR)/%.gv=$(OUT_DIR)/%.gv.png)
|
||||
|
||||
.PHONY: all preview clean references pdf
|
||||
|
||||
all: pdf
|
||||
|
||||
$(OUT_DIR)/%.gv.png: $(GRAPHS_DIR)/%.gv
|
||||
dot -Tpng $< -o $@
|
||||
|
||||
index: $(OUT_DIR)/main.idx
|
||||
makeindex $^
|
||||
|
||||
|
||||
references: annexes.bib references.bib
|
||||
bibtex $(OUT_DIR)/annexes
|
||||
bibtex $(OUT_DIR)/references
|
||||
|
||||
#pdf: $(OUT_DIR)/main.pdf
|
||||
#$(OUT_DIR)/main.pdf: main.tex $(GRAPHS_IMG) $(CONTENTS)
|
||||
pdf: main.tex $(GRAPHS_IMG) $(CONTENTS)
|
||||
pdflatex -output-directory $(OUT_DIR) $^
|
||||
|
||||
preview: $(OUT_DIR)/main.pdf
|
||||
zathura $^
|
||||
|
||||
document:
|
||||
make
|
||||
make index
|
||||
make references
|
||||
make
|
||||
|
||||
clean:
|
||||
rm $(OUT_DIR)/*
|
Reference in New Issue
Block a user