branch: scratch/editorconfig-cc
commit f2349405893b915d1878700a9fa24cbc88e1359b
Author: 10sr <8.slas...@gmail.com>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Add make info target
---
 Makefile | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d25311ed80..d1df2bb21b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 # -*- Makefile -*-
 
 EMACS = emacs
+PANDOC = pandoc
+MAKEINFO = makeinfo
 
 PROJECT_ROOT_DIR = $(PWD)
 ERT_TESTS = $(wildcard $(PROJECT_ROOT_DIR)/ert-tests/*.el)
@@ -15,7 +17,19 @@ OBJS = $(SRCS:.el=.elc)
 $(OBJS): %.elc: %.el
        $(EMACS) $(BATCHFLAGS) -f batch-byte-compile $^
 
-.PHONY: all clean test test-travis test-ert test-core test-metadata sandbox
+.PHONY: all clean test test-travis test-ert test-core test-metadata sandbox 
doc info
+
+
+docs: info
+
+info: docs/editorconfig.info
+
+docs/editorconfig.info: README.md
+       mkdir -p docs
+       tail -n +4 $< | $(PANDOC) -s -f markdown -o $@.texi
+       echo >>$@.texi
+       $(MAKEINFO) --no-split $@.texi -o $@
+
 
 test: test-ert test-core test-metadata $(OBJS)
        $(EMACS) $(BATCHFLAGS) -l editorconfig.el

Reply via email to