summaryrefslogtreecommitdiffstats
path: root/36c3/Replicant_sustainability/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '36c3/Replicant_sustainability/Makefile')
-rw-r--r--36c3/Replicant_sustainability/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/36c3/Replicant_sustainability/Makefile b/36c3/Replicant_sustainability/Makefile
new file mode 100644
index 0000000..7bc95ec
--- /dev/null
+++ b/36c3/Replicant_sustainability/Makefile
@@ -0,0 +1,26 @@
+TEXFLAGS ?= -halt-on-error -output-format pdf -output-directory output
+TITLE = Replicant_sustainability
+IMAGES := \
+ output/i9300_hardware.png \
+ output/virtuous_circle.png \
+
+.PHONY: all clean test medias
+all: output/$(TITLE).pdf
+
+output:
+ mkdir -p output
+
+output/$(TITLE).pdf: output $(TITLE).tex $(IMAGES)
+ pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}'
+ # pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}'
+
+output/%.png: dot/%.dot output
+ dot -T png $< > $@
+
+output/i9300_hardware.png: images/i9300_hardware.svg
+ convert $< $@
+
+output/virtuous_circle.png: images/virtuous_circle.dot
+ dot -T png $< > $@
+clean:
+ rm -rf output