Skip to content

Instantly share code, notes, and snippets.

@chaoren1641
Last active August 29, 2015 14:05
Show Gist options
  • Save chaoren1641/0de7c67601144c71fff7 to your computer and use it in GitHub Desktop.
Save chaoren1641/0de7c67601144c71fff7 to your computer and use it in GitHub Desktop.
# Output Directory
OUTPUT = build
all: css html js
css:
@echo "scss => css"
@compass \
compile
# html:
# @echo "jade => html"
# @jade \
# -o "{}" \
# < demo \
# > index.html
JADE = $(shell find demo/**.jade)
HTML = $(patsubst jade/%.jade, %.html, $(JADE))
all: $(HTML)
%.html: jade/%.jade
jade < $< --out $< --path $< --pretty > $@
js:
@echo "coffee => js"
@coffee -bco \
$(OUTPUT) **/*.coffee
watch:
watch --interval=1 $(MAKE) all
.PHONY: all css html js watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment