mastodon image
[enc-static.git] / Makefile.imgs
1 # Makefile to convert translated and edited svg files to png in the correct size
2
3 # first run `mkdir -p img/$l/screenshots` where $l is your language code
4
5 # then add your language code into the list here
6 LANG = de
7 # then run `make -f Makefile.imgs` which will convert the svg files automaticaly using inkscape (make sure you have the required fonts on your system)
8
9 IMG = $(foreach l, $(LANG),\
10 $(foreach f,\
11 donate.png\
12 full-infographic.png\
13 infographic-button.png\
14 join.png,\
15 img/$l/$f) \
16 $(foreach f,\
17 section3-try-it-out.png\
18 section4-web-of-trust.png\
19 section5-01-use-it-well.png\
20 section5-02-use-it-well.png\
21 section6-next-steps.png\
22 step1a-install-wizard.png\
23 step1b-01-tools-addons.png\
24 step1b-02-search.png\
25 step1b-03-install.png\
26 step2a-01-make-keypair.png\
27 workshop-section1.png,\
28 img/$l/screenshots/$f))
29
30 INKSCAPE = inkscape -D
31
32 all: $(IMG)
33
34 img/%/donate.png: svg/%/donate.svg
35 $(INKSCAPE) -w 160 -h 45 -e $@ $<
36 img/%/full-infographic.png: svg/%/gnupg-infographic.svg
37 $(INKSCAPE) -w 749 -h 2933 -e $@ $<
38 img/%/infographic-button.png: svg/%/infographic.svg
39 $(INKSCAPE) -w 253 -h 300 -e $@ $<
40 img/%/join.png: svg/%/join.svg
41 $(INKSCAPE) -w 160 -h 49 -e $@ $<
42
43 img/%/screenshots/section3-try-it-out.png: svg/%/adele.svg
44 $(INKSCAPE) -w 600 -h 425 -e $@ $<
45 img/%/screenshots/section4-web-of-trust.png: svg/%/weboftrust.svg
46 $(INKSCAPE) -w 600 -h 436 -e $@ $<
47 img/%/screenshots/section5-01-use-it-well.png: svg/%/identity.svg
48 $(INKSCAPE) -C -w 600 -h 280 -e $@ $<
49 img/%/screenshots/section5-02-use-it-well.png: svg/%/section5-02-use-it-well.svg
50 $(INKSCAPE) -w 600 -h 404 -e $@ $<
51 img/%/screenshots/section6-next-steps.png: svg/%/elements.svg
52 $(INKSCAPE) -w 600 -h 365 -e $@ $<
53 img/%/screenshots/step1a-install-wizard.png: svg/%/step1a-install-wizard.svg
54 $(INKSCAPE) -w 600 -h 438 -e $@ $<
55 img/%/screenshots/step1b-01-tools-addons.png: svg/%/step1b-01-tools-addons.svg
56 $(INKSCAPE) -C -w 600 -h 438 -e $@ $<
57 img/%/screenshots/step1b-02-search.png: svg/%/step1b-02-search.svg
58 $(INKSCAPE) -w 844 -h 575 -e $@ $<
59 img/%/screenshots/step1b-03-install.png: svg/%/step1b-03-install.svg
60 $(INKSCAPE) -w 844 -h 575 -e $@ $<
61 img/%/screenshots/step2a-01-make-keypair.png: svg/%/step2a-01-make-keypair.svg
62 $(INKSCAPE) -w 600 -h 457 -e $@ $<
63 img/%/screenshots/workshop-section1.png: svg/%/workshop-section1.svg
64 $(INKSCAPE) -C -w 800 -h 571 -e $@ $<