summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2013-08-02 07:08:13 (GMT)
committerMichele Bini <michele.bini@gmail.com>2013-08-02 07:08:13 (GMT)
commit05cdb0cc8fe644a1cb490fd93662453e9bf416c9 (patch)
treeaaa5725f434dff3c2ecf8b0b0ef65048a981c2a6 /Makefile
parentb72f72596d5efdb9a47a799d0d168853b2da114b (diff)
Updated Makefile
Diffstat (limited to 'Makefile')
-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 $@
+