1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
Description: Render the README file as plain text.
Suggested by: Adam Borowski <kilobyte@angband.pl>
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2018-12-16
--- a/src/Makefile
+++ b/src/Makefile
@@ -43,6 +43,7 @@
sources := $(sort $(wildcard *.cc))
objects := $(addprefix ., $(sources:.cc=$(suffix).o))
deps := $(addprefix ., $(sources:.cc=$(suffix).d))
+txtdocs := ../README.text
ifeq ($(static),yes)
LDFLAGS += -static -pthread
@@ -90,7 +91,7 @@
CXXFLAGS += -Wno-init-list-lifetime
endif
-all : kak
+all : kak $(txtdocs)
kak : kak$(suffix)
ln -sf $< $@
@@ -119,6 +120,9 @@
man: ../doc/kak.1
endif
+../%.text: ../%.asciidoc
+ a2x --no-xmllint -f text $<
+
check: test
test: kak
cd ../test && ./run
@@ -166,7 +170,7 @@
find $(sharedir)/rc -type f -exec chmod 0644 {} +
[ -e $(sharedir)/autoload ] || ln -s rc $(sharedir)/autoload
install -m 0644 ../colors/* $(sharedir)/colors
- install -m 0644 ../README.asciidoc $(docdir)
+ install -m 0644 ../README.text $(docdir)/README
ifeq ($(gzip_man),yes)
install -m 0644 ../doc/kak.1.gz $(mandir)
else
|