From: Ben Hutchings Date: Wed, 27 Jul 2011 15:16:09 +0000 (+0200) Subject: Add Makefile based on the one used for LCA DVswitch talk X-Git-Tag: debconf11~15 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f140cc9b0e7537c1f8e4926978c727c4b59a3983;p=debian-kernel-talk.git Add Makefile based on the one used for LCA DVswitch talk --- f140cc9b0e7537c1f8e4926978c727c4b59a3983 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