aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-09-27 00:32:03 -0700
committerbnewbold <bnewbold@robocracy.org>2016-09-27 00:35:10 -0700
commit263a1df7a5737f37916e653e85ccff2852276fc3 (patch)
tree4156a476abbb107ad65cf56a600ba5a146fe480a /Makefile
parent7783a0feedd3a20c24a99089f7682f240f0a7b65 (diff)
downloadeinhyrningsins-263a1df7a5737f37916e653e85ccff2852276fc3.tar.gz
einhyrningsins-263a1df7a5737f37916e653e85ccff2852276fc3.zip
gh-pages helper
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e7d1cba..fff0e0b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,16 @@
RONN = ronn
MANPAGE = einhyrningsins.1
-$(MANPAGE): doc/$(MANPAGE).ronn
+doc/$(MANPAGE): doc/$(MANPAGE).ronn
$(RONN) -r $<
-$(MANPAGE).html: doc/$(MANPAGE).ronn
- $(RONN) -5 $<
+doc/$(MANPAGE).html: doc/$(MANPAGE).ronn
+ $(RONN) --style toc -5 $<
+
+gh-pages: doc/$(MANPAGE).html
+ cp doc/$(MANPAGE).html /tmp/index.html
+ git checkout gh-pages
+ cp /tmp/index.html index.html
+ git add -u index.html
+ git commit -m "updating rendered manpage for github docs"
+ git checkout master