commit 260178dcef927ecdddfba2a0b4097a3955aa7940
parent f5917c35bdfa6c297647f4ceb60b01793ad57f0a
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Fri, 6 Jan 2017 22:57:30 -0500
prepare for new c9x infrastructure
Diffstat:
2 files changed, 3 insertions(+), 21 deletions(-)
diff --git a/doc/Makefile b/doc/Makefile
@@ -1,21 +1,13 @@
-.PHONY: all clean sync
-
DOCS = abi il llvm
-all: $(DOCS:%=html/%.html) html/txt.css
-
-html/txt.css: txt/txt.css
- cp -f $< $@
+all: $(DOCS:%=html/%.html)
clean:
rm -fr html
html/%.html: %.txt
mkdir html 2> /dev/null || true
- ( echo '<!doctype html>'; \
- echo '<meta name=viewport content="width=device-width, initial-scale=1">'; \
- echo '<link rel="stylesheet" href="/css/simple.css" type="text/css" />'; \
- echo '<link rel="stylesheet" href="txt.css" type="text/css" />'; \
+ ( echo '<link rel="stylesheet" href="/assets/css/txt.css" type="text/css" />'; \
sed -ne '2{s,.*,<title>&</title>,;p;q}' $<; \
echo '<div class="container">'; \
sed -ne '2{s,.*,<h2>&</h2>,;p;q}' $<; \
@@ -23,5 +15,4 @@ html/%.html: %.txt
echo '</div>'; \
) > $@
-sync:
- scp html/* h:/srv/data/w/compile/doc/
+.PHONY: all clean
diff --git a/doc/txt/txt.css b/doc/txt/txt.css
@@ -1,9 +0,0 @@
-h3 {
- border-bottom: 1px solid #aaa;
- background-color: #eee;
-}
-
-.bnf {
- background-color: white;
- padding-left: 0.7em;
-}