aboutsummaryrefslogtreecommitdiff
path: root/doc/talks/2021-04-28_spirals-team/Makefile
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2021-04-30 15:47:11 +0200
committerAlex <alex@adnab.me>2021-04-30 15:47:11 +0200
commitb1f60579a13d3c5eba7f74b1775c84639ea9b51a (patch)
tree2581343ea7a97118064191ce06639e72d37bfa20 /doc/talks/2021-04-28_spirals-team/Makefile
parentdcfc32cf85bc6276fdff2492898c1cbb527e9b9d (diff)
parentbe3b1d8f91b7e9a42dee9083ee0e9ebf52bbc57f (diff)
downloadgarage-b1f60579a13d3c5eba7f74b1775c84639ea9b51a.tar.gz
garage-b1f60579a13d3c5eba7f74b1775c84639ea9b51a.zip
Merge pull request 'created doc/talks subfolder and added my talk and the previous one done at the wide team' (#67) from talks into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/67
Diffstat (limited to 'doc/talks/2021-04-28_spirals-team/Makefile')
-rw-r--r--doc/talks/2021-04-28_spirals-team/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/talks/2021-04-28_spirals-team/Makefile b/doc/talks/2021-04-28_spirals-team/Makefile
new file mode 100644
index 00000000..1db0c37a
--- /dev/null
+++ b/doc/talks/2021-04-28_spirals-team/Makefile
@@ -0,0 +1,33 @@
+.PHONY: all viewpdf pdf clean
+
+TARGET = main
+SOURCE_FILES = $(shell find . -type f -name "*.tex" -print)
+CLASS_FILES = $(shell find . -type f -name "*.cls" -print)
+BIB_FILES = $(shell find . -type f -name "*.bib" -print)
+FIGURES = $(shell find . -path "./figures/*" -type f -print)
+BUILD_PATH = build
+BUILD_FILES = $(shell find $(BUILD_PATH) -type f -print)
+
+BIB_PROCESSOR := biber
+
+.PHONY: all pdf clean figures
+
+all: pdf
+
+pdf: $(TARGET).pdf
+
+clean:
+ @rm $(TARGET).pdf $(BUILD_FILES) > /dev/null 2>&1 || exit 0
+
+figures: figures/crdt.pdf
+
+$(TARGET).pdf: figures $(FIGURES) $(SOURCE_FILES) $(BIB_FILES) $(CLASS_FILES)
+ @mkdir -p $(BUILD_PATH) > /dev/null 2>&1 || exit 0
+ @pdflatex -interaction=nonstopmode -jobname=$(TARGET) -output-directory $(BUILD_PATH) $(TARGET).tex
+ @$(BIB_PROCESSOR) --output-directory $(BUILD_PATH) $(TARGET)
+ @pdflatex -interaction=nonstopmode -jobname=$(TARGET) -output-directory $(BUILD_PATH) $(TARGET).tex # For biber
+ @pdflatex -interaction=nonstopmode -jobname=$(TARGET) -output-directory $(BUILD_PATH) $(TARGET).tex # For biber
+ @ln -fs $(BUILD_PATH)/$(TARGET).pdf $(TARGET).pdf
+
+figures/crdt.pdf: figures/svg/crdt.svg
+ @inkscape -C --file=$< --export-pdf=$@ \ No newline at end of file