aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-10-16 20:46:05 -0700
committerbnewbold <bnewbold@robocracy.org>2016-10-16 20:46:05 -0700
commit8ec307163bd487dcbf9522dba7d7cbcc757867dd (patch)
tree7c0478c907c295620a6b2615e82cbb34fb836497 /Makefile
parentb48e412eb2111fd3b24bcac991c77c41ef240627 (diff)
downloadeinhyrningsins-8ec307163bd487dcbf9522dba7d7cbcc757867dd.tar.gz
einhyrningsins-8ec307163bd487dcbf9522dba7d7cbcc757867dd.zip
update docs
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