summaryrefslogtreecommitdiffstats
path: root/presentations/fri-demokratisk/images/Makefile
blob: 8133f953babbc92a4832866755da397ff9eba7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
SHELL = /bin/bash

ALL = \
  Richard_Stallman_at_Marlboro_College.jpg\
  Tux-gnu-dynamic-duo.png\
  Heckert_GNU.png\
  Heckert_GNU.svg\
  Tux.svg Tux.pdf

all: $(ALL)

template.jpg:
	@file="$@";\
	description="";\
	attribution="";\
	file_url="";\
	if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
	printf "%s\n  %s\n  %s\n" "$$file" "$$description" "$$attribution"

Richard_Stallman_at_Marlboro_College.jpg:
	@file="$@";\
	description="Photo of Richard Stallman at Marlboro College 26 april 2007.";\
	attribution="Av Jared and Corin (Richard M. Stallman) [CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons";\
	file_url="https://upload.wikimedia.org/wikipedia/commons/c/c2/Richard_Stallman_at_Marlboro_College.jpg";\
	if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
	printf "%s\n  %s\n  %s\n" "$$file" "$$description" "$$attribution"

Tux.pdf: Tux.svg
	cairosvg -f pdf -o $@ $<
	# gs -o $@ -f $@ \
	-sDEVICE=pdfwrite -dProcessColorModel=/DeviceGray \
	-dColorConversionStrategy=/Gray -dPDFUseOldCMS=false

Tux.svg:
	@file="$@";\
	description="penguin Tux, the Linux Mascot";\
	attribution="By Larry Ewing, Simon Budig, Anja Gerwinski ([1]) [Attribution], via Wikimedia Commons";\
	file_url="https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg";\
	if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
	printf "%s\n  %s\n  %s\n" "$$file" "$$description" "$$attribution"

Tux-gnu-dynamic-duo.png:
	@file="$@";\
	description="The Dynamic Duo: The Gnu and the Penguin in flight";\
	attribution="derivative work: Wondigoma, Free Software Foundation, Inc. (Tux-gnu-dynamic-duo.jpg) [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0/), GFDL (http://www.gnu.org/copyleft/fdl.html) or GPL (http://www.gnu.org/licenses/gpl.html)], via Wikimedia Commons";\
	file_url="https://upload.wikimedia.org/wikipedia/commons/1/19/Tux-gnu-dynamic-duo.png";\
	if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
	printf "%s\n  %s\n  %s\n" "$$file" "$$description" "$$attribution"

Heckert_GNU.png:
	@file="$@";\
	description="A Bold GNU Head";\
	attribution="By Aurelio A. Heckert <aurium@gmail.com> (gnu.org) [FAL, GFDL 1.3 (http://www.gnu.org/licenses/fdl.html) or CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons";\
	file_url="https://upload.wikimedia.org/wikipedia/commons/4/45/Heckert_GNU.png";\
	if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
	printf "%s\n  %s\n  %s\n" "$$file" "$$description" "$$attribution"

Heckert_GNU.svg:
	@file="$@";\
	description="A Bold GNU Head";\
	attribution="By Aurelio A. Heckert <aurium@gmail.com> (gnu.org) [FAL, GFDL 1.3 (http://www.gnu.org/licenses/fdl.html) or CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons";\
	file_url="https://upload.wikimedia.org/wikipedia/commons/2/22/Heckert_GNU_white.svg";\
	if [ ! -f "$@" ]; then curl -o "$$file" "$$file_url"; fi;\
	printf "%s\n  %s\n  %s\n" "$$file" "$$description" "$$attribution"

%-25.jpg: %.jpg
	convert $< -resize 25% $@
%-12.jpg: %.jpg
	convert $< -resize 12% $@
%.pdf: %.svg
	cairosvg -f pdf -o $@ $<

clean:
	rm -f $(ALL)