aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVegard Øye <vegard_oye@hotmail.com>2011-11-07 11:50:00 +0100
committerVegard Øye <vegard_oye@hotmail.com>2011-11-07 11:50:00 +0100
commit29b28d6348e1362460606b6ac5bd578376ccd839 (patch)
treeb259da59376d930f799275ed171d81f0508e8671 /Makefile
parentb0758da5238630b7897d54f017b620742447ec28 (diff)
parentce2d71e2a61e93b547bf41e6bf5f7cdef467a080 (diff)
Merge branch 'doc'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d9728a5..64c6572 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,13 @@ FILES = $(filter-out evil-tests.el,$(filter-out evil-pkg.el,$(wildcard evil*.el)
VERSION := $(shell sed -n '3s/.*"\(.*\)".*/\1/p' evil-pkg.el)
ELPAPKG = evil-$(VERSION)
PROFILER =
+DOC = doc
TAG =
LIBS = -L lib
ELCFILES = $(FILES:.el=.elc)
-.PHONY: all compile compile-batch clean tests test emacs term terminal profiler indent elpa version
+.PHONY: all compile compile-batch info pdf clean tests test emacs term terminal profiler indent elpa version
# Byte-compile Evil.
all: compile
@@ -33,12 +34,20 @@ $(ELCFILES): %.elc: %.el
compile-batch: clean
$(EMACS) --batch -Q -L . $(LIBS) -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 etc.
clean:
rm -f *~
rm -f \#*\#
rm -f *.elc
rm -f .depend
+ cd $(DOC) && rm -f *.aux *.cp *.fn *.fns *.info *.ky *.log *.pg *.toc *.tp *.vr *.vrs
# Run tests.
# The TAG variable may specify a test tag or a test name: