summaryrefslogtreecommitdiffstats
path: root/LibrePlanet2022/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'LibrePlanet2022/Makefile')
-rw-r--r--LibrePlanet2022/Makefile64
1 files changed, 64 insertions, 0 deletions
diff --git a/LibrePlanet2022/Makefile b/LibrePlanet2022/Makefile
new file mode 100644
index 0000000..a02a938
--- /dev/null
+++ b/LibrePlanet2022/Makefile
@@ -0,0 +1,64 @@
+TEXFLAGS ?= -halt-on-error -output-format pdf -output-directory output
+TITLE = Struggle_for_independence
+
+.PHONY: all clean medias
+all: output/$(TITLE).pdf
+
+output:
+ mkdir output
+
+output/$(TITLE).pdf: \
+ Struggle_for_independence.tex \
+ output \
+ output/android_logo.png \
+ output/framework.png \
+ output/freedo.png \
+ output/i9300_left.png \
+ output/n900.png \
+ output/replicant_logo_alpha.png \
+ output/tablets.png \
+ output/wifi.png
+ pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}'
+ # pdflatex $(TEXFLAGS) '\providecommand\locale{en}\input{$(TITLE).tex}'
+
+output/android_logo.png: images/Android_Robot_Cleaner_2014-2019.svg output
+ convert $< $@
+
+output/freedo.png: images/Freedo_improved.svg output
+ convert $< $@
+
+output/i9300_hardware.png: ../common/images/i9300_hardware.svg output
+ convert $< $@
+
+output/i9300_left.png: output/i9300_hardware.png output
+ convert $< -crop 50%x0%+0+0 $@
+
+output/n900.png: images/N900_xterm.JPG images/Nokia_N900-6.jpg
+ mkdir -p output
+ convert -append -gravity center $? $@
+
+output/replicant_logo_alpha.png: ../external_resources/vendor_replicant_artwork/replicant_logo_alpha.png output
+ convert $< $@
+
+output/tablets.png: \
+ ../external_resources/replicant_website/images/supported-devices/p3100.png \
+ ../external_resources/replicant_website/images/supported-devices/p5100.png
+ mkdir -p output
+ convert -append $? $@
+
+output/wifi.png: \
+ images/tehnoetic-n150-mini-wifi-adapter-back-500x500.png \
+ images/tet-otg-side-500x500.jpg \
+ images/Wifi.png
+ mkdir -p output
+ convert -append -gravity center $? $@
+
+output/%.png: dot/%.dot output
+ dot -T png $< > $@
+
+clean:
+ rm -rf output
+
+output/%.png: dot/%.dot
+ mkdir -p output
+ dot -T png $< > $@