default: build
all: build

ICED=node_modules/.bin/iced
BUILD_STAMP=build-stamp
TEST_STAMP=test-stamp


index.js: index.iced
	$(ICED) -I browserify -c -o `dirname $@` $<

$(BUILD_STAMP): \
	index.js
	date > $@

clean:
	rm index.js

build: $(BUILD_STAMP) 

setup: 
	npm install -d

test:
	iced test/run.iced

.PHONY: test setup

