neon 0.1.2

A safe abstraction layer for Node.js.
MARKDOWN_FILES = $(wildcard doc/*.md)
HTML_FILES = $(MARKDOWN_FILES:doc/%.md=target/doc/%.html)

all: doc

publish: doc
	cd target/doc && surge

doc: $(HTML_FILES) target/doc/rust.css target/doc/CNAME

target/doc/%.html: doc/%.md
	rustdoc --markdown-playground-url='https://play.rust-lang.org' --markdown-css rust.css $< --output=target/doc

target/doc/rust.css:
	curl -s https://raw.githubusercontent.com/rust-lang/rust/master/src/doc/rust.css > target/doc/rust.css

target/doc/CNAME: doc/CNAME
	cp doc/CNAME target/doc/CNAME