add build scripts

This commit is contained in:
Quentin Carbonneaux 2016-03-08 21:17:01 -05:00
parent 34d97d4102
commit 98c36c2850
2 changed files with 17 additions and 0 deletions

1
doc/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
html/

16
doc/Makefile Normal file
View file

@ -0,0 +1,16 @@
.PHONY: all clean
all: html/abi.html html/il.html
clean:
rm -fr html
html/%.html: %.txt
mkdir html 2> /dev/null || true
( echo "<!doctype html>"; \
echo "<link rel="stylesheet" href="http://c9x.me/css/simple.css" type="text/css" />"; \
echo '<div class="container">'; \
sed -ne '2{s,.*,<h2>&</h2>,;p;q}' $<; \
sed -e '1,3d' $< | ocaml txt.ml; \
echo '</div>'; \
) > $@