2016-02-13 21:37:45 +00:00
|
|
|
SOURCES = source/*.coffee source/*.haml main.hy
|
|
|
|
|
|
|
|
all: static/index.html static/index.js static/officehours.js main.py
|
|
|
|
|
|
|
|
# Needed because Flask's "debugger" setting doesn't grok
|
|
|
|
# Hy directly. Nuisance!
|
|
|
|
|
|
|
|
main.py:
|
|
|
|
hy2py main.hy > main.py
|
2016-02-08 02:37:34 +00:00
|
|
|
|
2016-02-13 17:13:25 +00:00
|
|
|
static/%.html: source/%.haml
|
|
|
|
haml --unix-newlines --no-escape-attrs --double-quote-attributes $< > $@
|
|
|
|
|
2016-02-13 20:39:14 +00:00
|
|
|
static/%.js: source/%.coffee
|
|
|
|
coffee --compile -o $(dir $@) $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm static/*.html static/*.js
|
|
|
|
|
2016-02-13 21:37:45 +00:00
|
|
|
watch:
|
|
|
|
while inotifywait $(SOURCES); do clear ; make all ; done
|
2016-02-13 17:13:25 +00:00
|
|
|
|