add build scripts
This commit is contained in:
parent
34d97d4102
commit
98c36c2850
2 changed files with 17 additions and 0 deletions
1
doc/.gitignore
vendored
Normal file
1
doc/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
html/
|
16
doc/Makefile
Normal file
16
doc/Makefile
Normal 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>'; \
|
||||
) > $@
|
Loading…
Add table
Reference in a new issue