2011-08-08 04:18:47 +00:00
|
|
|
.SUFFIXES: .nw .js .pdf .html .tex .haml .css .stylus
|
2011-02-04 03:15:16 +00:00
|
|
|
|
|
|
|
NOTANGLE= notangle
|
|
|
|
NOWEAVE= noweave
|
|
|
|
ECHO= /bin/echo
|
2011-08-08 04:18:47 +00:00
|
|
|
STYLUS= stylus
|
|
|
|
HAML= haml
|
|
|
|
COFFEE= coffee
|
2011-02-04 03:15:16 +00:00
|
|
|
|
2011-08-08 04:18:47 +00:00
|
|
|
all: index.html store.js jsonstore.css
|
2011-02-04 03:15:16 +00:00
|
|
|
|
2011-08-08 04:18:47 +00:00
|
|
|
index.html: index.haml
|
|
|
|
$(HAML) --unix-newlines --no-escape-attrs --double-quote-attribute $*.haml > $*.html
|
|
|
|
|
|
|
|
index.haml: backbonestore.nw
|
|
|
|
$(NOTANGLE) -c -R$@ $< > $*.haml
|
|
|
|
|
|
|
|
jsonstore.css: jsonstore.styl
|
|
|
|
$(STYLUS) $*.styl
|
|
|
|
|
|
|
|
jsonstore.styl: backbonestore.nw
|
|
|
|
$(NOTANGLE) -c -R$@ $< > $@
|
|
|
|
|
|
|
|
store.js: store.coffee
|
|
|
|
$(COFFEE) --compile $<
|
|
|
|
|
|
|
|
store.coffee: backbonestore.nw
|
|
|
|
$(NOTANGLE) -c -R$@ $< > $@
|
2011-02-04 03:15:16 +00:00
|
|
|
|
|
|
|
.nw.tex:
|
|
|
|
$(NOWEAVE) -x -delay $*.nw > $*.tex #$
|
|
|
|
|
|
|
|
.tex.pdf:
|
|
|
|
xelatex $*.tex; \
|
|
|
|
while grep -s 'Rerun to get cross-references right' $*.log; \
|
|
|
|
do \
|
|
|
|
xelatex *$.tex; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
- rm -f *.tex *.dvi *.aux *.toc *.log *.out *.html *.js
|
|
|
|
|
|
|
|
realclean: clean
|
|
|
|
- rm -f *.pdf
|
|
|
|
|