Created
March 30, 2013 12:07
-
-
Save alpha360x/5276463 to your computer and use it in GitHub Desktop.
My makefile for web applications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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