From 7c3af4ea9b75361e9d726d72ba587318e4e92c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Thu, 9 Aug 2012 16:48:40 +0000 Subject: Makefile: add coffee support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- web/js/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/js/Makefile b/web/js/Makefile index 7664ea1..d822167 100644 --- a/web/js/Makefile +++ b/web/js/Makefile @@ -3,7 +3,7 @@ FILEEXT=.js SRCTARGETS=$(patsubst %.d,dist/%.src.js,$(DIRS)) MINTARGETS=$(patsubst %.d,dist/%.min.js,$(DIRS)) -depend=$(shell sh -c 'ls $$(echo $1 | cut -d/ -f2 | cut -d. -f1).d/*$(FILEEXT)') +depend=$(shell sh -c 'ls $$(echo $1 | cut -d/ -f2 | cut -d. -f1).d/* | sed -e "s/\.coffee/.js/g" | uniq | grep $(FILEEXT)') .PHONY: all mkdist all: $(MINTARGETS) @@ -22,3 +22,6 @@ $(SRCTARGETS): $$(call depend,$$@) | mkdist $(MINTARGETS): $$(patsubst %.min.js,%.src.js,$$@) date uglifyjs $^ > $@ + +%.js: %.coffee + coffee -p $< > $@ -- cgit v1.2.1