summaryrefslogtreecommitdiffstats
path: root/web/js/Makefile
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-08-09 16:48:40 +0000
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>2012-08-09 16:48:40 +0000
commit7c3af4ea9b75361e9d726d72ba587318e4e92c0f (patch)
tree063359d0502bc3b5f784104b31e0987130983ac6 /web/js/Makefile
parentb2b58f95c7e8860bbb5c0081ae739b26ac12ea34 (diff)
downloadlabitrack-7c3af4ea9b75361e9d726d72ba587318e4e92c0f.tar.gz
labitrack-7c3af4ea9b75361e9d726d72ba587318e4e92c0f.tar.xz
labitrack-7c3af4ea9b75361e9d726d72ba587318e4e92c0f.zip
Makefile: add coffee support
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Diffstat (limited to 'web/js/Makefile')
-rw-r--r--web/js/Makefile5
1 files changed, 4 insertions, 1 deletions
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 $< > $@