2013-02-19 13:56:26 +00:00
|
|
|
DOCNAME = user-manual
|
|
|
|
DOCSOURCE = $(DOCNAME).txt
|
|
|
|
HTMLDOC = $(DOCNAME).html
|
|
|
|
ASCIIDOC = asciidoc
|
|
|
|
A2X = a2x
|
|
|
|
BROWSER = firefox
|
First try at converting user-manual to AsciiDoc
You can do "make doc" in the main directory to create the html version,
and if you want to play around with it, do "make show" in the
Documentation subdirectory to start firefox on the end result.
It's by no means perfect, but it gives somewhat reasonable results, and
this is enough initial work for people to play around with, I think.
NOTE! You need "asciidoc" installed to do this: it's a python program,
so it should be pretty easy even on non-Linux platforms. And on Linux,
most distributions package it, so you just have to do something like
yum install asciidoc
to get it (replace with apt-get/zypper/whatever).
Asciidoc can generate other output too (man-pages, LaTeX, etc), maybe
people want to play with that part too.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-01 23:12:28 +00:00
|
|
|
|
2013-02-19 14:04:57 +00:00
|
|
|
all: doc $(addprefix $(DOCNAME).,pdf text)
|
First try at converting user-manual to AsciiDoc
You can do "make doc" in the main directory to create the html version,
and if you want to play around with it, do "make show" in the
Documentation subdirectory to start firefox on the end result.
It's by no means perfect, but it gives somewhat reasonable results, and
this is enough initial work for people to play around with, I think.
NOTE! You need "asciidoc" installed to do this: it's a python program,
so it should be pretty easy even on non-Linux platforms. And on Linux,
most distributions package it, so you just have to do something like
yum install asciidoc
to get it (replace with apt-get/zypper/whatever).
Asciidoc can generate other output too (man-pages, LaTeX, etc), maybe
people want to play with that part too.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-01 23:12:28 +00:00
|
|
|
|
2013-02-19 21:46:49 +00:00
|
|
|
doc: $(HTMLDOC)
|
|
|
|
|
2013-02-19 14:04:57 +00:00
|
|
|
$(DOCNAME).text: $(DOCSOURCE)
|
|
|
|
$(A2X) -f text $<
|
First try at converting user-manual to AsciiDoc
You can do "make doc" in the main directory to create the html version,
and if you want to play around with it, do "make show" in the
Documentation subdirectory to start firefox on the end result.
It's by no means perfect, but it gives somewhat reasonable results, and
this is enough initial work for people to play around with, I think.
NOTE! You need "asciidoc" installed to do this: it's a python program,
so it should be pretty easy even on non-Linux platforms. And on Linux,
most distributions package it, so you just have to do something like
yum install asciidoc
to get it (replace with apt-get/zypper/whatever).
Asciidoc can generate other output too (man-pages, LaTeX, etc), maybe
people want to play with that part too.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-01 23:12:28 +00:00
|
|
|
|
2013-02-19 14:04:57 +00:00
|
|
|
$(DOCNAME).pdf: $(DOCSOURCE)
|
|
|
|
$(A2X) -f pdf $<
|
2013-02-19 13:56:26 +00:00
|
|
|
|
2013-02-19 21:46:49 +00:00
|
|
|
$(HTMLDOC): $(DOCSOURCE)
|
2013-08-05 15:22:11 +00:00
|
|
|
@echo "if asciidoc isn't found no HTML documentation is produced but Subsurface is still functional"
|
|
|
|
$(ASCIIDOC) $< || true
|
2013-02-18 21:09:57 +00:00
|
|
|
|
|
|
|
# Alternatively::
|
2013-02-19 13:56:26 +00:00
|
|
|
$(DOCNAME).xhtml: $(DOCSOURCE)
|
|
|
|
$(A2X) --icons -f xhtml $<
|
2013-02-18 21:09:57 +00:00
|
|
|
|
2013-02-19 14:04:57 +00:00
|
|
|
show: $(HTMLDOC)
|
|
|
|
$(BROWSER) $<
|
2013-02-18 21:09:57 +00:00
|
|
|
|
|
|
|
clean:
|
2013-02-19 13:56:26 +00:00
|
|
|
rm -f *~ docbook-xsl.css $(HTMLDOC) $(addprefix $(DOCNAME).,pdf text)
|