aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVegard Øye <vegard_oye@hotmail.com>2011-07-21 18:41:07 +0200
committerVegard Øye <vegard_oye@hotmail.com>2011-07-21 18:41:07 +0200
commit99889a7fe75cd1c0d07eaddebbe90c863e2e1581 (patch)
tree6f70389b7ad1e68c59ddb21e11aa4db15de55273 /Makefile
parentd24aaaf793ca3f321f6469b9a800f514a7ec3f0a (diff)
Add "make info" and "make pdf"
These rules compile the Texinfo documentation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index adf817c..3b0c620 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
SHELL = /bin/bash
EMACS = emacs
+DOC = doc
FILES = evil*.el
TAG =
-.PHONY: all compile compile-batch clean tests test emacs term terminal indent
+.PHONY: all compile compile-batch info pdf clean tests test emacs term terminal indent
# Byte-compile Evil.
all: compile
@@ -17,11 +18,19 @@ done
compile-batch: clean
$(EMACS) --batch -Q -L . -f batch-byte-compile ${FILES}
+# Documentation.
+info: clean pdf
+ cd $(DOC) && makeinfo evil.texi
+
+pdf: clean
+ cd $(DOC) && texi2pdf evil.texi
+
# Delete byte-compiled files.
clean:
rm -f *~
rm -f \#*\#
rm -f *.elc
+ cd $(DOC) && rm -f *.aux *.cp *.fn *.info *.ky *.log *.pg *.toc *.tp *.vr
# Run tests.
# The TAG variable may specify a test tag or a test name: