aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index fff0e0b..9fd1521 100644
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,17 @@
RONN = ronn
MANPAGE = einhyrningsins.1
-doc/$(MANPAGE): doc/$(MANPAGE).ronn
- $(RONN) -r $<
+docs: doc/*.ronn
+ $(RONN) -r doc/*.ronn
+ $(RONN) --style toc -5 doc/*.ronn
-doc/$(MANPAGE).html: doc/$(MANPAGE).ronn
- $(RONN) --style toc -5 $<
-
-gh-pages: doc/$(MANPAGE).html
- cp doc/$(MANPAGE).html /tmp/index.html
+gh-pages: docs
+ mkdir -p /tmp/einhyrningsins-ronn
+ cp doc/*.1.html /tmp/einhyrningsins-ronn
git checkout gh-pages
- cp /tmp/index.html index.html
- git add -u index.html
+ cp /tmp/einhyrningsins-ronn/*.html .
+ cp einhyrningsins.1.html index.html
+ git add -u *.html
git commit -m "updating rendered manpage for github docs"
git checkout master
+ rm -r /tmp/einhyrningsins-ronn