Source

vim-begin / vim-begin / jekyll-prototype / Makefile

Diff from to

File vim-begin/jekyll-prototype/Makefile

 GENERATED_HTMLS = $(shell find _site -name '*.html')
 GENERATED_CSS = src/css/style.css
 
+SCREENSHOTS_PNGS = src/screenshots/images/romainl-macvim1.png src/screenshots/images/romainl-macvim2.png
+SCREENSHOTS_PNGS_PREVIEWS = $(patsubst %.png,%-preview.png,$(SCREENSHOTS_PNGS))
+
 all: $(GENERATED_HTMLS) $(GENERATED_CSS)
 
-$(GENERATED_HTMLS) : $(SOURCES)
+$(GENERATED_HTMLS) : $(SOURCES) $(SCREENSHOTS_PNGS_PREVIEWS)
 	jekyll
 
+$(SCREENSHOTS_PNGS_PREVIEWS): %-preview.png: %.png
+	convert $< -resize 200 $@
+
 $(GENERATED_CSS) : sass/jqui-override.sass sass/style.sass sass/print.sass sass/vim_syntax_highlighting.sass
 	compass compile
 	mkdir -p _site/css