Commits

Shlomi Fish committed db27b78

Add the gen-helpers script.

Comments (0)

Files changed (3)

 vim-begin/jekyll-prototype/dest
+vim-begin/jekyll-prototype/include.mak
 vim-begin/jekyll-prototype/_site
 vim-begin/jekyll-prototype/.sass-cache
 vim-begin/jekyll-prototype/src/jqui-override.css

vim-begin/jekyll-prototype/Makefile

 # GENERATED_HTMLS = _site/index.html _site/books/index.html _site/mailing-lists/index.html
 D = dest
 
+include include.mak
+
 SOURCES = $(shell find src -name '*.html') _config.yml atom.xml CNAME README.textile
 GENERATED_HTMLS = $(shell find _site -name '*.html')
 GENERATED_CSS = src/css/style.css
 
 all: $(GENERATED_CSS) $(DESTS) $(HTACCESS_DEST) $(SCREENSHOTS_PNGS_PREVIEWS)
 
-$(DESTS): $(D)/%.html: src/%.html.tt2 footer.tt2 blocks.tt2
+$(DEST_HTMLS): $(SRC_TT2S) footer.tt2 blocks.tt2
 	perl process.pl
 
 $(HTACCESS_DEST): htaccess.conf

vim-begin/jekyll-prototype/gen-helpers

+#!/bin/bash
+(
+echo "SRC_TT2S = $(find src -name '*.html.tt2' | (LC_ALL=C sort) | perl -lape 's/$/ \\/')"
+echo
+echo "DEST_HTMLS = $(find dest -name '*.html' | (LC_ALL=C sort) | perl -lape 's/$/ \\/')"
+echo
+) > include.mak