From 62d0dbc0fde3e381d5f592c9807043bccef64cc4 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 3 Feb 2013 01:24:20 +0100 Subject: [PATCH 1/1] Add S5 makefile copied from debian-kernel talk --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7c39a4f --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +all: s5-checksums.txt + +clean: + rm -rf s5-checksums.txt s5-blank *.dia.svg *.xcf.png + +s5-checksums.txt: /usr/share/s5/s5-blank + s5 blank . + sed -i 's/url(bodybg.gif)//; s/\btext-transform: capitalize\s*;//' \ + s5-blank/ui/default/pretty.css + +%.dia.svg: %.dia + dia --export=$@ $< + +%.xcf.png: %.xcf + gimp -i -d -b ' '\ +'(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "$<" "$<"))) '\ +' (layer (car (gimp-image-flatten image)))) '\ +' (gimp-file-save RUN-NONINTERACTIVE image layer "$@" "$@")) '\ +'(gimp-quit 0)' + +pub: + rm -rf pub + mkdir pub + cp -R -t pub index.html s5-blank $(wildcard *.svg *.png) + +.PHONY: all clean pub -- 2.39.5