Skip to content

Instantly share code, notes, and snippets.

@cmaggard
Created March 10, 2010 20:27
Show Gist options
  • Save cmaggard/328338 to your computer and use it in GitHub Desktop.
Save cmaggard/328338 to your computer and use it in GitHub Desktop.
.SUFFIXES: .haml .html .css .sass
HAML = haml
SASS = sass
HAML_SRC = $(shell find . -name "*.haml")
HTML_SRC = $(HAML_SRC:.haml=.html)
SASS_SRC = $(shell find . -name "*.sass")
CSS_SRC = $(SASS_SRC:.sass=.css)
all: $(HTML_SRC) $(CSS_SRC)
jekyll
server: $(HTML_SRC) $(CSS_SRC)
jekyll --server
clean:
rm $(HTML_SRC)
rm $(CSS_SRC)
.haml.html:
$(HAML) $< > $@
.sass.css:
$(SASS) $< > $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment