summaryrefslogtreecommitdiffstats
path: root/37c3/Smartphones_freedom_status_2023/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '37c3/Smartphones_freedom_status_2023/Makefile')
-rw-r--r--37c3/Smartphones_freedom_status_2023/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/37c3/Smartphones_freedom_status_2023/Makefile b/37c3/Smartphones_freedom_status_2023/Makefile
new file mode 100644
index 0000000..f0e5831
--- /dev/null
+++ b/37c3/Smartphones_freedom_status_2023/Makefile
@@ -0,0 +1,23 @@
+TEXFLAGS ?= -halt-on-error -output-format pdf -output-directory output
+TITLE = Smartphones_freedom_status_2023
+IMAGES := \
+ output/i9300_hardware.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: ../../common/images/i9300_hardware.svg
+ gm convert $< $@
+
+clean:
+ rm -rf output