mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
add build scripts
This commit is contained in:
parent
34d97d4102
commit
98c36c2850
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…
Reference in New Issue
Block a user