aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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