From f140cc9b0e7537c1f8e4926978c727c4b59a3983 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Wed, 27 Jul 2011 17:16:09 +0200 Subject: [PATCH] Add Makefile based on the one used for LCA DVswitch 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