summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-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 $< > $@