diff --git a/Makefile b/Makefile index baed8bf..4f493e0 100644 --- a/Makefile +++ b/Makefile @@ -6,14 +6,14 @@ ECHO= echo LIBS:= htdocs/lib/underscore.js htdocs/lib/jquery.js htdocs/lib/backbone.js -all: htdocs/index.html htdocs/store.js htdocs/jsonstore.css htdocs/data/items.json +all: htdocs/index.html htdocs/store.js htdocs/data/items.json @if [ ! -e "./htdocs/lib" ]; then \ echo "Please do 'make setup' before continuing"; \ exit 1; \ fi serve: all - $(COFFEE) ./bin/autoreload + ./bin/autoreload store: all @@ -39,10 +39,7 @@ docs: mkdir -p docs htdocs/index.html: src/backbonestore.nw - $(NOTANGLE) -c -Rindex.haml src/backbonestore.nw > htdocs/index.html - -htdocs/jsonstore.css: src/backbonestore.nw - $(NOTANGLE) -c -Rjsonstore.css src/backbonestore.nw > htdocs/jsonstore.css + $(NOTANGLE) -c -Rindex.html src/backbonestore.nw > htdocs/index.html htdocs/store.js: src/backbonestore.nw $(NOTANGLE) -c -Rstore.js src/backbonestore.nw > htdocs/store.js @@ -67,7 +64,7 @@ docs/backbonestore.html: docs src/backbonestore.nw html: docs/backbonestore.html clean: - - rm -f htdocs/*.* docs/*.tex docs/*.dvi docs/*.aux docs/*.toc docs/*.log docs/*.out + - rm -f htdocs/*.js htdocs/*.html docs/*.tex docs/*.dvi docs/*.aux docs/*.toc docs/*.log docs/*.out distclean: clean - rm -fr ./htdocs/lib diff --git a/bin/autoreload b/bin/autoreload index 1558b47..428acf0 100755 --- a/bin/autoreload +++ b/bin/autoreload @@ -1,3 +1,4 @@ +#!/usr/bin/env node var fs = require('fs'); var Inotify = require('inotify').Inotify; diff --git a/htdocs/index.html b/htdocs/index.html new file mode 100644 index 0000000..87754e0 --- /dev/null +++ b/htdocs/index.html @@ -0,0 +1,75 @@ + + +
+