diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2013-02-17 22:50:19 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2013-02-17 22:50:19 +0400 |
commit | 1a63699ce58044f99bd56bab89d3b08e41d29bd9 (patch) | |
tree | 9e50c8efd7fa2b5e9d3522401a39e7f66c5fb2ca /Makefile.in | |
parent | a709e767f608f633cd14ac04c4f776fc2c57a00c (diff) | |
download | nasm-1a63699ce58044f99bd56bab89d3b08e41d29bd9.tar.gz nasm-1a63699ce58044f99bd56bab89d3b08e41d29bd9.tar.bz2 nasm-1a63699ce58044f99bd56bab89d3b08e41d29bd9.zip |
man: Generate manpages from asciidoc format
The asciidoc format is a way more easier to read
by a human.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 10 |
1 files changed, 7 insertions, 3 deletions
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) \ |