Skip to content

Instantly share code, notes, and snippets.

@ecarter
Created November 30, 2011 17:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ecarter/1409858 to your computer and use it in GitHub Desktop.
Save ecarter/1409858 to your computer and use it in GitHub Desktop.
Makefile - coffee/jade/stylus
# Output Directory
OUTPUT = ../lib
all: css html js
css:
@echo "stylus => css"
@stylus \
-c \
-u nib \
< style.styl \
> $(OUTPUT)/style.css
html:
@echo "jade => html"
@jade \
-o "{}" \
< index.jade \
> index.html
js:
@echo "coffee => js"
@coffee -bco \
$(OUTPUT) script.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