From 1a63699ce58044f99bd56bab89d3b08e41d29bd9 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 17 Feb 2013 22:50:19 +0400 Subject: man: Generate manpages from asciidoc format The asciidoc format is a way more easier to read by a human. Signed-off-by: Cyrill Gorcunov --- Makefile.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index d7b4e22..0ea71f7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -31,6 +31,8 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ NROFF = @NROFF@ +ASCIIDOC = @ASCIIDOC@ +XMLTO = @XMLTO@ MKDIR = mkdir RM = rm @@ -47,7 +49,7 @@ ifeq ($(TRACE),1) CFLAGS += -DNASM_TRACE endif -.SUFFIXES: .c .i .s .$(O) .1 .man +.SUFFIXES: .c .i .s .$(O) .1 .txt .PHONY: all doc rdf install clean distclean cleaner spotless install_rdf test .PHONY: install_doc everything install_everything strip perlreq dist tags TAGS @@ -61,8 +63,10 @@ endif .c.i: $(CC) -E $(ALL_CFLAGS) -o $@ $< -.1.man: - $(NROFF) -man $< > $@ +.txt.1: + $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.1,%.xml,$@) $< + $(XMLTO) man --skip-validation $(patsubst %.1,%.xml,$@) 2>/dev/null + #-- Begin File Lists --# NASM = nasm.$(O) nasmlib.$(O) ver.$(O) \ -- cgit v1.2.3