77 lines
1.8 KiB
Makefile
77 lines
1.8 KiB
Makefile
BUILD_DIR=build
|
|
FILE=content
|
|
|
|
pdf:
|
|
mkdir $(BUILD_DIR) -p
|
|
$(MAKE) pandoc || true
|
|
$(MAKE) tex || true
|
|
$(MAKE) biber || true
|
|
$(MAKE) tex || true
|
|
# -------------------
|
|
# | PDF LATEX |
|
|
# -------------------
|
|
$(MAKE) pdf-raw
|
|
|
|
pdf-no-bib:
|
|
mkdir $(BUILD_DIR) -p
|
|
$(MAKE) pandoc-no-bib
|
|
$(MAKE) tex
|
|
# -----------------------------
|
|
# | PDF LATEX NO BIBLIOGRAPHY |
|
|
# -----------------------------
|
|
$(MAKE) pdf-raw
|
|
|
|
pdf-raw:
|
|
pdflatex --interaction nonstopmode -output-directory=$(BUILD_DIR) $(FILE).tex
|
|
|
|
|
|
biber:
|
|
# -------------------
|
|
# | BIBER |
|
|
# -------------------
|
|
biber --output-directory=$(BUILD_DIR) $(FILE).bcf
|
|
|
|
pandoc:
|
|
# -------------------
|
|
# | PANDOC |
|
|
# -------------------
|
|
pandoc $(FILE).md \
|
|
-V linkcolor:blue \
|
|
-V geometry:a4paper \
|
|
--template=./template.tex \
|
|
--biblatex \
|
|
--metadata=bibliography:refs.bib \
|
|
--from=markdown+tex_math_single_backslash+tex_math_dollars+raw_tex \
|
|
--to=latex \
|
|
--output=$(BUILD_DIR)/$(FILE).tex
|
|
|
|
pandoc-no-bib:
|
|
# --------------------------
|
|
# | PANDOC NO BIBLIOGRAPHY |
|
|
# --------------------------
|
|
pandoc $(FILE).md \
|
|
-V linkcolor:blue \
|
|
-V geometry:a4paper \
|
|
--template=./template.tex \
|
|
--from=markdown+tex_math_single_backslash+tex_math_dollars+raw_tex \
|
|
--to=latex \
|
|
--output=$(BUILD_DIR)/$(FILE).tex
|
|
|
|
tex:
|
|
# -------------------
|
|
# | LATEX |
|
|
# -------------------
|
|
latex -interaction nonstopmode -output-directory=$(BUILD_DIR) $(BUILD_DIR)/$(FILE).tex
|
|
|
|
clear:
|
|
rm $(BUILD_DIR)/$(FILE).toc || true
|
|
rm $(BUILD_DIR)/$(FILE).tex || true
|
|
rm $(BUILD_DIR)/$(FILE).out || true
|
|
rm $(BUILD_DIR)/$(FILE).log || true
|
|
rm $(BUILD_DIR)/$(FILE).dvi || true
|
|
rm $(BUILD_DIR)/$(FILE).bcf || true
|
|
rm $(BUILD_DIR)/$(FILE).aux || true
|
|
rm $(BUILD_DIR)/$(FILE).run.xml || true
|
|
rm $(BUILD_DIR)/$(FILE).blg || true
|
|
rm $(BUILD_DIR)/$(FILE).bbl || true
|