Skip to content

Instantly share code, notes, and snippets.

@alpha360x
Created March 30, 2013 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpha360x/5276463 to your computer and use it in GitHub Desktop.
Save alpha360x/5276463 to your computer and use it in GitHub Desktop.
My makefile for web applications.
JADE := jade
COFFEE := coffee
COFFEE_SRCS := $(wildcard js/*.coffee)
JS_OUTPUTS := $(COFFEE_SRCS:%.coffee=%.js)
JADE_SRCS := $(wildcard *.jade)
HTML_OUTPUTS := $(JADE_SRCS:%.jade=%.html)
OUTPUTS := $(JS_OUTPUTS) $(HTML_OUTPUTS)
.PHONY : all clean
all : $(OUTPUTS)
clean :
rm -f $(OUTPUTS)
%.js : %.coffee
$(COFFEE) -b -c $<
%.html : %.jade
$(JADE) -P < $< > $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment