Fixed Makefile

This commit is contained in:
saundersp 2024-08-05 00:31:57 +02:00
parent b6e7429363
commit 4688e13c93

View File

@ -1,9 +1,11 @@
OUT_DIR := out OUT_DIR := out
GRAPHS_DIR := graphs GRAPHS_DIR := graphs
CONTENTS_DIR := contents CONTENTS_DIR := contents
PACKAGES_DIR := packages
REFERENCES_DIR := references REFERENCES_DIR := references
CONTENTS := $(wildcard $(CONTENTS)/*.tex) CONTENTS := $(wildcard $(CONTENTS_DIR)/*.tex)
PACKAGES := $(wildcard $(PACKAGES_DIR)/*.sty)
REFERENCES := $(wildcard $(REFERENCES_DIR)/*.bib) REFERENCES := $(wildcard $(REFERENCES_DIR)/*.bib)
GRAPHS := $(wildcard $(GRAPHS_DIR)/*.gv) GRAPHS := $(wildcard $(GRAPHS_DIR)/*.gv)
GRAPHS_IMG := $(GRAPHS:$(GRAPHS_DIR)/%.gv=$(OUT_DIR)/%.gv.png) GRAPHS_IMG := $(GRAPHS:$(GRAPHS_DIR)/%.gv=$(OUT_DIR)/%.gv.png)
@ -29,11 +31,12 @@ references: $(REFERENCES)
bibtex $(OUT_DIR)/annexes bibtex $(OUT_DIR)/annexes
bibtex $(OUT_DIR)/references bibtex $(OUT_DIR)/references
--inner_pdf: .PHONY: --inner_pdf
--inner_pdf: $(CONTENTS) $(PACKAGES) $(REFERENCES) $(GRAPHS)
pdflatex -output-directory $(OUT_DIR) main.tex pdflatex -output-directory $(OUT_DIR) main.tex
.PHONY: pdf .PHONY: pdf
pdf: $(GRAPHS_IMG) --inner_pdf references index --inner_pdf pdf: $(GRAPHS_IMG) --inner_pdf references index --inner_pdf references --inner_pdf
.PHONY: preview .PHONY: preview
preview: pdf preview: pdf