aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore18
-rw-r--r--Makefile6
-rw-r--r--doc/Makefile10
3 files changed, 23 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 338c811..102d7b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,17 +1,19 @@
*.elc
-*.aux
*.cp
-*.fn
-*.fns
-*.info
*.ky
-*.log
*.pg
-*.toc
*.tp
-*.vr
-*.vrs
.depend
evil-autoloads.el
test-results.txt
typescript
+
+/doc/dir
+/doc/*.aux
+/doc/*.fn
+/doc/*.fns
+/doc/*.info
+/doc/*.log
+/doc/*.toc
+/doc/*.vr
+/doc/*.vrs
diff --git a/Makefile b/Makefile
index 642666d..7e3e07c 100644
--- a/Makefile
+++ b/Makefile
@@ -37,10 +37,10 @@ compile-batch: clean
doc: info pdf
info: clean
- cd $(DOC) && makeinfo evil.texi
+ @$(MAKE) -C doc evil.info
pdf: clean
- cd $(DOC) && texi2pdf evil.texi
+ @$(MAKE) -C doc evil.pdf
# Delete byte-compiled files etc.
clean:
@@ -48,7 +48,7 @@ clean:
rm -f \#*\#
rm -f *.elc
rm -f .depend
- cd $(DOC) && rm -f *.aux *.cp *.fn *.fns *.info *.ky *.log *.pg *.toc *.tp *.vr *.vrs
+ @$(MAKE) -C doc clean
# Run tests.
# The TAG variable may specify a test tag or a test name:
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..8c3acf5
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,10 @@
+.PHONY: clean
+
+%.info: %.texi
+ makeinfo --no-split $<
+
+%.pdf: %.texi
+ texi2pdf $<
+
+clean:
+ rm -f *.aux *.cp *.fn *.fns *.info *.ky *.log *.pg *.toc *.tp *.vr *.vrs