diff options
author | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-08-09 16:48:40 +0000 |
---|---|---|
committer | Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> | 2012-08-09 16:48:40 +0000 |
commit | 7c3af4ea9b75361e9d726d72ba587318e4e92c0f (patch) | |
tree | 063359d0502bc3b5f784104b31e0987130983ac6 /web | |
parent | b2b58f95c7e8860bbb5c0081ae739b26ac12ea34 (diff) | |
download | labitrack-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')
-rw-r--r-- | web/js/Makefile | 5 |
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 $< > $@ |