aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/architecture/original-drawings/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/architecture/original-drawings/Makefile')
-rw-r--r--documentation/architecture/original-drawings/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/documentation/architecture/original-drawings/Makefile b/documentation/architecture/original-drawings/Makefile
new file mode 100644
index 0000000000..812217dbf1
--- /dev/null
+++ b/documentation/architecture/original-drawings/Makefile
@@ -0,0 +1,18 @@
+SVG =
+RASTERIMAGES = architecture-detailed
+
+RASTERSRCIMAGES := $(foreach file, $(RASTERIMAGES), $(file).svg)
+RASTERIMAGES_HI := $(foreach file, $(RASTERIMAGES), ../img/$(file)-hi.png)
+RASTERIMAGES_LO := $(foreach file, $(RASTERIMAGES), ../img/$(file)-lo.png)
+SVGTRGIMAGES := $(foreach file, $(SVG), ../img/$(file).svg)
+
+images: $(RASTERIMAGES_HI) $(SVGTRGIMAGES) FORCE
+# Just do low now $(TRGIMAGES_LO)
+
+$(RASTERIMAGES_HI): ../img/%-hi.png: %.svg
+ inkscape --export-png $@ --export-dpi=300 --export-area-drawing $<
+
+$(SVGTRGIMAGES): ../img/%.svg: %.svg FORCE
+ inkscape $< --export-text-to-path -l $@
+
+FORCE: