summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[l---------]Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c6970c3..da246f1 120000..100644
--- a/Makefile
+++ b/Makefile
@@ -1 +1,13 @@
-htmlcup/Makefile \ No newline at end of file
+TARGETS=index.html
+
+all: $(TARGETS)
+
+clean:
+ rm -f $(TARGETS)
+
+%.html: %.html.coffee
+ (sh -c "coffee $< >$@.new" && mv $@.new $@ && touch -r $< $@) || rm -f $@
+
+%.html: %.htmlcup
+ (sh -c "coffee $< >$@.new" && mv $@.new $@ && touch -r $< $@) || rm -f $@
+