From b1372687cd9d952bde4792fbc308fe7b4cea7afb Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Mon, 5 Oct 2015 00:42:47 +0200 Subject: Initial commit on fri-demokratisk presentation --- presentations/fri-demokratisk/images/Makefile | 74 +++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 presentations/fri-demokratisk/images/Makefile (limited to 'presentations/fri-demokratisk/images/Makefile') diff --git a/presentations/fri-demokratisk/images/Makefile b/presentations/fri-demokratisk/images/Makefile new file mode 100644 index 0000000..8133f95 --- /dev/null +++ b/presentations/fri-demokratisk/images/Makefile @@ -0,0 +1,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 (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 (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) -- cgit v1.2.3